次の方法で共有


DataServiceConfiguration.RegisterKnownType メソッド

データ サービスで認識される型のリストに型を追加します。

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

構文

'宣言
Public Sub RegisterKnownType ( _
    type As Type _
)
'使用
Dim instance As DataServiceConfiguration
Dim type As Type

instance.RegisterKnownType(type)
public void RegisterKnownType(
    Type type
)
public:
virtual void RegisterKnownType(
    Type^ type
) sealed
abstract RegisterKnownType : 
        type:Type -> unit 
override RegisterKnownType : 
        type:Type -> unit 
public final function RegisterKnownType(
    type : Type
)

パラメーター

  • type
    型: System.Type
    既知の型のコレクションに追加する型。

実装

IDataServiceConfiguration.RegisterKnownType(Type)

説明

ランタイムが一連の既定の規則で検出できなかった型については、プロバイダーが RegisterKnownType メソッドを使用して登録することができます。

関連項目

参照

DataServiceConfiguration クラス

System.Data.Services 名前空間

その他の技術情報

データ サービスの構成 (WCF Data Services)