Sdílet prostřednictvím


FileExtensionContentTypeProvider.TryGetContentType(String, String) Metoda

Definice

Na základě cesty k souboru určete typ MIME.

public:
 virtual bool TryGetContentType(System::String ^ subpath, [Runtime::InteropServices::Out] System::String ^ % contentType);
public bool TryGetContentType (string subpath, out string contentType);
abstract member TryGetContentType : string * string -> bool
override this.TryGetContentType : string * string -> bool
Public Function TryGetContentType (subpath As String, ByRef contentType As String) As Boolean

Parametry

subpath
String

Cesta k souboru

contentType
String

Výsledný typ MIME

Návraty

True, pokud se dá určit typ MIME

Implementuje

Platí pro