Sdílet prostřednictvím


IContentTypeProvider.TryGetContentType(String, String) Metoda

Definice

Vzhledem k cestě k souboru určete typ MIME.

public:
 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
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 je možné určit typ MIME

Platí pro