Condividi tramite


IContentTypeProvider.TryGetContentType(String, String) Metodo

Definizione

Specificato un percorso file, determinare il tipo 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

Parametri

subpath
String

Percorso file

contentType
String

Tipo MIME risultante

Restituisce

True se è possibile determinare il tipo MIME

Si applica a