HttpResponseWrapper::ContentEncoding Property

 

Gets or sets the content encoding of the current response.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
property Encoding^ ContentEncoding {
	virtual Encoding^ get() override;
	virtual void set(Encoding^ value) override;
}

Property Value

Type: System.Text::Encoding^

The information about the content encoding of the current response.

Exception Condition
ArgumentNullException

Attempted to set ContentEncoding to null.

.NET Framework
Available since 3.5
Return to top
Show: