IContentTypeRegistryService2.GetMimeType(IContentType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取与内容类型关联的 mime 类型。
public:
System::String ^ GetMimeType(Microsoft::VisualStudio::Utilities::IContentType ^ type);
public string GetMimeType (Microsoft.VisualStudio.Utilities.IContentType type);
abstract member GetMimeType : Microsoft.VisualStudio.Utilities.IContentType -> string
Public Function GetMimeType (type As IContentType) As String
参数
- type
- IContentType
返回
注解
使用 MimeTypeAttribute 上的特性 ContentTypeDefinition 可将 mime 类型与内容类型相关联。