DataServiceRequestArgs.ContentType 属性

获取或设置请求消息的 Content-Type 标头。

命名空间:  System.Data.Services.Client
程序集:  Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)

语法

声明
Public Property ContentType As String
    Get
    Set
用法
Dim instance As DataServiceRequestArgs
Dim value As String

value = instance.ContentType

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

属性值

类型:System.String
Content-Type 标头的值。

注释

未验证 ContentType 属性的值。 因此,请确保所提供的值是有效 HTTP Content-Type 标头值。

请参阅

参考

DataServiceRequestArgs 类

System.Data.Services.Client 命名空间