Share via


HttpResponseBase.ContentType 属性

定义

获取或设置当前响应的 HTTP 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

属性值

当前响应的 HTTP MIME 类型。

例外

适用于