HttpWebRequest.AutomaticDecompression 属性

定义

获取或设置所使用的解压缩类型。Gets or sets the type of decompression that is used.

public:
 property System::Net::DecompressionMethods AutomaticDecompression { System::Net::DecompressionMethods get(); void set(System::Net::DecompressionMethods value); };
public System.Net.DecompressionMethods AutomaticDecompression { get; set; }
member this.AutomaticDecompression : System.Net.DecompressionMethods with get, set
Public Property AutomaticDecompression As DecompressionMethods

属性值

一个 DecompressionMethods 对象,该对象指示所使用的解压缩类型。A DecompressionMethods object that indicates the type of decompression that is used.

例外

对象的当前状态不允许设置此属性。The object's current state does not allow this property to be set.

适用于