IContentTypeRegistryService2.GetContentTypeForMimeType(String) 方法

定义

获取与 mime 类型关联的内容类型。

public:
 Microsoft::VisualStudio::Utilities::IContentType ^ GetContentTypeForMimeType(System::String ^ mimeType);
public Microsoft.VisualStudio.Utilities.IContentType GetContentTypeForMimeType (string mimeType);
abstract member GetContentTypeForMimeType : string -> Microsoft.VisualStudio.Utilities.IContentType
Public Function GetContentTypeForMimeType (mimeType As String) As IContentType

参数

mimeType
String

返回

IContentType

注解

使用 MimeTypeAttribute 上的特性 ContentTypeDefinition 可将 mime 类型与内容类型相关联。

适用于