Partilhar via


IContentTypeRegistryService2.GetContentTypeForMimeType(String) Method

Definition

Get the content type associated with a mime type.

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

Parameters

mimeType
String

Returns

Remarks

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

Applies to