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 数据服务 支持的协议包括 JSON 和 AtomPub。

请参阅

参考

IDataServiceHost 接口

System.Data.Services 命名空间