获取或设置请求消息的 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 标头值。