Compartilhar via


FileExtensionContentTypeProvider.TryGetContentType(String, String) Método

Definição

Dado um caminho de arquivo, determinar o tipo 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

Parâmetros

subpath
String

Um caminho do arquivo

contentType
String

O tipo MIME resultante

Retornos

Verdadeiro se o tipo MIME pôde ser determinado

Implementações

Aplica-se a