次の方法で共有


DataService<T>.CurrentDataSource プロパティ

現在要求の処理に使用されているデータ ソース インスタンスを取得します。

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

構文

'宣言
Protected ReadOnly Property CurrentDataSource As T
    Get
'使用
Dim value As T

value = Me.CurrentDataSource
protected T CurrentDataSource { get; }
protected:
property T CurrentDataSource {
    T get ();
}
member CurrentDataSource : 'T
function get CurrentDataSource () : T

プロパティ値

型: T
サービスのデータ ソース インスタンス。

説明

クラスの構築時に使用されたテンプレート クラスのインスタンスです。

関連項目

参照

DataService<T> クラス

System.Data.Services 名前空間