C# Class DataServiceProvider.DSPResource

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

Public Methods

Method 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 method

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.
return System

GetValue() public method

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

SetValue() public method

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.
return void