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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.WebTesting Namespace