C# 클래스 DataServiceProvider.DSPResource

Class which represents a single resource instance.
Uses a property bag to store properties of the resource.
파일 보기 프로젝트 열기: object/NorthwindOData 1 사용 예제들

공개 메소드들

메소드 설명
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