获取用于对响应体进行编码的方法。
命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
Public Property ContentEncoding As String
    Get
    Friend Set
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)
属性值
类型:System.String
一个字符串,该字符串描述用于对响应体进行编码的方法。
异常
| 异常 | 条件 | 
|---|---|
| ObjectDisposedException | 已释放当前的实例。 | 
备注
ContentEncoding 属性包含与响应一起返回的 Content-Encoding 标头的值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.TestTools.WebTesting 命名空间