IDataServiceHost.ResponseContentType 属性

获取响应的传输协议。

命名空间:  System.Data.Services
程序集:  Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)

语法

声明
Property ResponseContentType As String
    Get
    Set
用法
Dim instance As IDataServiceHost
Dim value As String

value = instance.ResponseContentType

instance.ResponseContentType = value
string ResponseContentType { get; set; }
property String^ ResponseContentType {
    String^ get ();
    void set (String^ value);
}
abstract ResponseContentType : string with get, set
function get ResponseContentType () : String
function set ResponseContentType (value : String)

属性值

类型:System.String
包含内容类型的 string 值。

示例

有关受 IDataServiceHost 及其使用支持的属性的更多信息,请参见 数据客户端 (WCF Data Services)

请参阅

参考

IDataServiceHost 接口

System.Data.Services 命名空间