Share via


WebTestResponse.ContentType Property

Gets the MIME type of the response body.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

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

Property Value

Type: String
A MIME type.

Exceptions

Exception Condition
ObjectDisposedException

The current instance has been disposed.

Remarks

The ContentType property contains the value of the Content-Type header returned with the response.

.NET Framework Security

See Also

Reference

WebTestResponse Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP