HttpResponseWrapper::HeaderEncoding Property

 

Gets or sets the encoding for the header of the current response.

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

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

Property Value

Type: System.Text::Encoding^

The information about the encoding for the current header.

Exception Condition
ArgumentNullException

The encoding value is null.

HttpException

The encoding value is Unicode.

- or -

The headers have already been sent.

.NET Framework
Available since 3.5
Return to top
Show: