WebTestResponse.ContentType 属性

获取响应正文的 MIME 类型。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Public Property ContentType As String
public string ContentType { get; internal set; }
public:
property String^ ContentType {
    String^ get ();
    internal: void set (String^ value);
}
member ContentType : string with get, internal set
function get ContentType () : String 
internal function set ContentType (value : String)

属性值

类型:String
一个 MIME 类型。

异常

异常 条件
ObjectDisposedException

已释放当前的实例。

备注

ContentType 属性包含与响应一起返回的 Content-Type 标头的值。

.NET Framework 安全性

请参阅

参考

WebTestResponse 类

Microsoft.VisualStudio.TestTools.WebTesting 命名空间

其他资源

HTTP