共用方式為


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)

屬性值

型別:System.String
MIME 類型。

例外狀況

例外狀況 條件
ObjectDisposedException

已經處置目前的執行個體。

備註

ContentType 屬性包含由回應所傳回的內容類型標頭中的值。

.NET Framework 安全性

請參閱

參考

WebTestResponse 類別

Microsoft.VisualStudio.TestTools.WebTesting 命名空間

其他資源

HTTP