IContentTypeRegistryService2.GetMimeType(IContentType) 方法

定义

获取与内容类型关联的 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

参数

返回

String

注解

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

适用于