Share via


IContentTypeProvider.TryGetContentType Method (String, String)

 

Given a file path, determine the MIME type

Namespace:   Microsoft.Owin.StaticFiles.ContentTypes
Assembly:  Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)

Syntax

bool TryGetContentType(
    string subpath,
    out string contentType
)
bool TryGetContentType(
    String^ subpath,
    [OutAttribute] String^% contentType
)
abstract TryGetContentType : 
        subpath:string *
        contentType:string byref -> bool
Function TryGetContentType (
    subpath As String,
    <OutAttribute> ByRef contentType As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

True if MIME type could be determined

See Also

IContentTypeProvider Interface
Microsoft.Owin.StaticFiles.ContentTypes Namespace

Return to top