Share via


HttpPostedFileBase.ContentType 属性

定义

在派生类中重写时,获取已上载文件的 MIME 内容类型。

public:
 virtual property System::String ^ ContentType { System::String ^ get(); };
public virtual string ContentType { get; }
member this.ContentType : string
Public Overridable ReadOnly Property ContentType As String

属性值

文件的 MIME 内容类型。

例外

适用于