IContentTypeRegistryService2.GetContentTypeForMimeType(String) 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 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.