Share via


DataServiceRequestArgs.AcceptContentType 屬性

定義

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

public:
 property System::String ^ AcceptContentType { System::String ^ get(); void set(System::String ^ value); };
public string AcceptContentType { get; set; }
member this.AcceptContentType : string with get, set
Public Property AcceptContentType As String

屬性值

Accept 標頭的值。

備註

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

適用於