FileExtensionContentTypeProvider.TryGetContentType(String, String) Méthode

Définition

Étant donné un chemin d'accès fichier fourni, déterminer le type 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

Paramètres

subpath
String

Chemin d'accès fichier

contentType
String

Type MIME obtenu

Retours

Valeur « true » si le type MIME a pu être déterminé

Implémente

S’applique à