WebTestResponse.ContentEncoding Property
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 Property ContentEncoding As String
public string ContentEncoding { get; internal set; }
public:
property String^ ContentEncoding {
String^ get ();
internal: void set (String^ value);
}
member ContentEncoding : string with get, internal set
function get ContentEncoding () : String
internal function set ContentEncoding (value : String)
Property Value
Type: 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