C# Class DataServiceProvider.DSPResource

Class which represents a single resource instance.
Uses a property bag to store properties of the resource.
Afficher le fichier Open project: object/NorthwindOData Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

DSPResource() public méthode

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.
Résultat System

GetValue() public méthode

Returns a value of the specified property.
public GetValue ( string propertyName ) : object
propertyName string The name of the property to return.
Résultat object

SetValue() public méthode

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.
Résultat void