共用方式為


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
包含內容類型的字串值。

範例

如需 IDataServiceHost 支援之屬性及其用法的詳細資訊,請參閱 資料用戶端 (WCF Data Services)

請參閱

參考

IDataServiceHost 介面

System.Data.Services 命名空間