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 ReadOnly Property ContentType As String
'Usage
Dim instance As WebTestResponse
Dim value As String
value = instance.ContentType
public string ContentType { get; }
public:
property String^ ContentType {
String^ get ();
}
public function get ContentType () : String
Property Value
Type: System.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