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: 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

See Also

Reference

WebTestResponse Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP