Share via


DataServiceStreamResponse.ContentType 属性

获取响应流的内容类型。

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

语法

声明
Public ReadOnly Property ContentType As String
    Get
用法
Dim instance As DataServiceStreamResponse
Dim value As String

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

属性值

类型:System.String
响应流的内容类型。

注释

当响应中不存在 Content-Type 标头时,ContentDisposition 属性将返回 nullnull 引用(在 Visual Basic 中为 Nothing)。

请参阅

参考

DataServiceStreamResponse 类

System.Data.Services.Client 命名空间