FileExtensionContentTypeProvider.TryGetContentType(String, String) メソッド

定義

ファイル パスから 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

パラメーター

subpath
String

ファイル パス

contentType
String

特定された MIME の種類

戻り値

MIME の種類を特定できた場合は true

実装

適用対象