IContentTypeRegistryService2.GetMimeType(IContentType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the mime type associated with a content type.
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
Parameters
- type
- IContentType
Returns
Remarks
Use the MimeTypeAttribute attribute on a ContentTypeDefinition to associate a mime type with a content type.