共用方式為


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 命名空間