Compartir a través de


WebTestResponse.ContentType (Propiedad)

Obtiene el tipo MIME del cuerpo de la respuesta.

Espacio de nombres:  Microsoft.VisualStudio.TestTools.WebTesting
Ensamblado:  Microsoft.VisualStudio.QualityTools.WebTestFramework (en Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintaxis

'Declaración
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)

Valor de propiedad

Tipo: String
Un tipo MIME.

Excepciones

Excepción Condición
ObjectDisposedException

Se ha eliminado la instancia actual.

Comentarios

La propiedad ContentType contiene el valor del encabezado Content- Type devuelto con la respuesta.

Seguridad de .NET Framework

Vea también

Referencia

WebTestResponse Clase

Microsoft.VisualStudio.TestTools.WebTesting (Espacio de nombres)

Otros recursos

HTTP