次の方法で共有


ResourceProperty.CanReflectOnInstanceTypeProperty プロパティ

宣言するリソース インスタンスの型でリフレクションを介してこのプロパティにアクセスできるかどうかを示す値を取得します。

名前空間:  System.Data.Services.Providers
アセンブリ:  Microsoft.Data.Services (Microsoft.Data.Services.dll)

構文

'宣言
Public Property CanReflectOnInstanceTypeProperty As Boolean
    Get
    Set
'使用
Dim instance As ResourceProperty
Dim value As Boolean

value = instance.CanReflectOnInstanceTypeProperty

instance.CanReflectOnInstanceTypeProperty = value
public bool CanReflectOnInstanceTypeProperty { get; set; }
public:
property bool CanReflectOnInstanceTypeProperty {
    bool get ();
    void set (bool value);
}
member CanReflectOnInstanceTypeProperty : bool with get, set
function get CanReflectOnInstanceTypeProperty () : boolean
function set CanReflectOnInstanceTypeProperty (value : boolean)

プロパティ値

型: System.Boolean
リフレクションを介してプロパティにアクセスできる場合は true。それ以外の場合は false。

説明

CanReflectOnInstanceTypeProperty プロパティが true を返すと、データ サービス ランタイムは、リフレクションを使用して ResourceType の宣言の InstanceType に関するプロパティ情報を取得します。

CanReflectOnInstanceTypeProperty プロパティが false を返すと、データ サービス ランタイムは、IDataServiceQueryProvider インターフェイスを使用してこのプロパティ値を取得または設定します。

関連項目

参照

ResourceProperty クラス

System.Data.Services.Providers 名前空間