Sdílet prostřednictvím


WebTestResponse.ContentType – vlastnost

Získá typ MIME těla odpovědi.

Obor názvů:  Microsoft.VisualStudio.TestTools.WebTesting
Sestavení:  Microsoft.VisualStudio.QualityTools.WebTestFramework (v Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntaxe

'Deklarace
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)

Hodnota vlastnosti

Typ: String
Typ MIME.

Výjimky

Výjimka Podmínka
ObjectDisposedException

Aktuální instance byla uvolněna.

Poznámky

ContentType Vlastnost obsahuje hodnotu záhlaví Content-Type, který je vrácen odpovědi.

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

WebTestResponse Třída

Microsoft.VisualStudio.TestTools.WebTesting – obor názvů

Další zdroje

HTTP