IContentTypeProvider.TryGetContentType(String, String) 메서드
정의
파일 경로가 지정된 경우 MIME 형식을 결정합니다.
public:
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
Public Function TryGetContentType (subpath As String, ByRef contentType As String) As Boolean
매개 변수
- subpath
- String
파일 경로입니다.
- contentType
- String
결과로 생성된 MIME 형식입니다.
반환
MIME 형식을 결정할 수 없으면 true입니다.