IFileExtensionRegistryService.GetExtensionsForContentType Method

Definition

Gets the list of file extensions associated with the specified content type.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ GetExtensionsForContentType(Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public System.Collections.Generic.IEnumerable<string> GetExtensionsForContentType (Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member GetExtensionsForContentType : Microsoft.VisualStudio.Utilities.IContentType -> seq<string>
Public Function GetExtensionsForContentType (contentType As IContentType) As IEnumerable(Of String)

Parameters

contentType
IContentType

The content type. It cannot be null.

Returns

The list of file extensions associated with the content type.

Applies to