次の方法で共有


IDataServiceHost.RequestContentType プロパティ

コンテンツ タイプ ヘッダーによって指定されたトランスポート プロトコルを取得します。

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

構文

'宣言
ReadOnly Property RequestContentType As String
    Get
'使用
Dim instance As IDataServiceHost
Dim value As String

value = instance.RequestContentType
string RequestContentType { get; }
property String^ RequestContentType {
    String^ get ();
}
abstract RequestContentType : string
function get RequestContentType () : String

プロパティ値

型: System.String
コンテンツ タイプを示す文字列値。

説明

現在 WCF Data Services では、JSON や AtomPub などのプロトコルがサポートされています。

関連項目

参照

IDataServiceHost インターフェイス

System.Data.Services 名前空間