Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
property String^ ContentType {
	String^ get();
	internal: void set(String^ value);
}

Property Value

Type: System::String^

A MIME type.

Exception Condition
ObjectDisposedException

The current instance has been disposed.

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

Return to top
Show: