Aracılığıyla paylaş


FileExtensionContentTypeProvider.TryGetContentType(String, String) Yöntem

Tanım

Bir dosya yolu verilip MIME türünü belirleyin

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

Parametreler

subpath
String

Dosya yolu

contentType
String

Sonuçta elde edilen MIME türü

Döndürülenler

MIME türü belirlenebiliyorsa true

Uygulamalar

Şunlara uygulanır