Share via


HttpRequestBase.ContentType 属性

定义

在派生类中替代时,获取或设置请求的 MIME 内容类型。

public:
 virtual property System::String ^ ContentType { System::String ^ get(); void set(System::String ^ value); };
public virtual string ContentType { get; set; }
member this.ContentType : string with get, set
Public Overridable Property ContentType As String

属性值

请求的 MIME 内容类型(如 "text/html")。

例外

适用于