共用方式為


DataServiceRequestArgs.AcceptContentType 屬性

取得或設定要求訊息的 Accept 標頭。

命名空間:  System.Data.Services.Client
組件:  Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)

語法

'宣告
Public Property AcceptContentType As String
    Get
    Set
'用途
Dim instance As DataServiceRequestArgs
Dim value As String

value = instance.AcceptContentType

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

屬性值

型別:System.String
Accept 標頭的值。

備註

不會對 AcceptContentType 屬性的值執行任何驗證。 因此,請確認所提供的值是 HTTP Accept 標頭的有效值。

請參閱

參考

DataServiceRequestArgs 類別

System.Data.Services.Client 命名空間