HttpResponseWrapper::ContentType Property

 

Gets or sets the HTTP MIME type of the current response.

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

public:
property String^ ContentType {
	virtual String^ get() override;
	virtual void set(String^ value) override;
}

Property Value

Type: System::String^

The HTTP MIME type of the current response. The default value is "text/html".

Exception Condition
HttpException

The ContentType property is set to null.

.NET Framework
Available since 3.5
Return to top
Show: