HttpResponseWrapper::ContentType Property
.NET Framework (current version)
Gets or sets the HTTP MIME type of the current response.
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
Available since 3.5
Show: