Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the method that is used to encode the body of the response.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public ReadOnly Property ContentEncoding As String
'Usage
Dim instance As WebTestResponse
Dim value As String
value = instance.ContentEncoding
public string ContentEncoding { get; }
public:
property String^ ContentEncoding {
String^ get ();
}
public function get ContentEncoding () : String
Property Value
Type: System.String
A string describing the method that is used to encode the body of the response.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The current instance has been disposed. |
Remarks
The ContentEncoding property contains the value of the Content-Encoding 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