IContentTypeRegistryService2.GetMimeType(IContentType) Method

Definition

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

Returns

Remarks

Use the MimeTypeAttribute attribute on a ContentTypeDefinition to associate a mime type with a content type.

Applies to