StaticFileOptions.DefaultContentType 属性

定义

如果 ContentTypeProvider 无法确定内容类型,则使用请求的默认内容类型。 默认情况下不提供任何值,因此,客户端必须自行确定格式。 http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7

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

属性值

适用于