IContentTypeProviderTryGetContentType 方法
给定文件路径,确定MIME类型
命名空间: TouchSocket.Http程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
bool TryGetContentType(
string subpath,
out string contentType
)
Function TryGetContentType (
subpath As String,
<OutAttribute> ByRef contentType As String
) As Boolean
abstract TryGetContentType :
subpath : string *
contentType : string byref -> bool
- subpath String
- 文件路径
- contentType String
- MIME类型
Boolean如果找到匹配的MIME类型则返回
,否则返回