FileExtensionContentTypeProvider.TryGetContentType(String, String) Método

Definición

Determina el tipo MIME en una ruta de acceso de archivo dada

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

Parámetros

subpath
String

Ruta de acceso de archivo

contentType
String

Tipo MIME resultante

Devoluciones

True si se pudo determinar el tipo MIME

Implementaciones

Se aplica a