IContentTypeRegistryService2.GetContentTypeForMimeType(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与 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
返回
注解
使用 MimeTypeAttribute 上的特性 ContentTypeDefinition 可将 mime 类型与内容类型相关联。