Udostępnij za pośrednictwem


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

See Also

Reference

WebTestResponse Class

WebTestResponse Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

HTTP