C# Класс DataServiceProvider.DSPResource

Class which represents a single resource instance.
Uses a property bag to store properties of the resource.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DSPResource ( System.Data.Services.Providers.ResourceType resourceType ) : System

Constructor, creates a new resource (all properties are empty).

GetValue ( string propertyName ) : object

Returns a value of the specified property.

SetValue ( string propertyName, object value ) : void

Sets a value of the specified property.

Note that this method will define the property if it doesn't exist yet. If it does exist, it will overwrite its value.

Описание методов

DSPResource() публичный Метод

Constructor, creates a new resource (all properties are empty).
public DSPResource ( System.Data.Services.Providers.ResourceType resourceType ) : System
resourceType System.Data.Services.Providers.ResourceType The type of the resource to create.
Результат System

GetValue() публичный Метод

Returns a value of the specified property.
public GetValue ( string propertyName ) : object
propertyName string The name of the property to return.
Результат object

SetValue() публичный Метод

Sets a value of the specified property.
Note that this method will define the property if it doesn't exist yet. If it does exist, it will overwrite its value.
public SetValue ( string propertyName, object value ) : void
propertyName string The name of the property to set.
value object The value to set the property to.
Результат void