Partager via


WebTestResponse.ContentType, propriété

Obtient le type MIME du corps de la réponse.

Espace de noms :  Microsoft.VisualStudio.TestTools.WebTesting
Assembly :  Microsoft.VisualStudio.QualityTools.WebTestFramework (dans Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntaxe

'Déclaration
Public Property ContentType As String
    Get
    Friend Set
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)

Valeur de propriété

Type : System.String
Type MIME.

Exceptions

Exception Condition
ObjectDisposedException

L'instance actuelle a été supprimée.

Notes

La propriété ContentType contient la valeur de l'en-tête Content-Type retourné avec la réponse.

Sécurité .NET Framework

Voir aussi

Référence

WebTestResponse Classe

Microsoft.VisualStudio.TestTools.WebTesting, espace de noms

Autres ressources

HTTP