Share via


IVsExtensionManager.GetEnabledExtensions Method (String)

Queries for all enabled extensions that contain a particular content type, for example, ItemTemplates or MEFComponents.

Namespace:  Microsoft.VisualStudio.ExtensionManager
Assembly:  Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)

Syntax

'Declaration
Function GetEnabledExtensions ( _
    contentTypeName As String _
) As IEnumerable(Of IInstalledExtension)
IEnumerable<IInstalledExtension> GetEnabledExtensions(
    string contentTypeName
)
IEnumerable<IInstalledExtension^>^ GetEnabledExtensions(
    String^ contentTypeName
)
abstract GetEnabledExtensions : 
        contentTypeName:string -> IEnumerable<IInstalledExtension> 
function GetEnabledExtensions(
    contentTypeName : String
) : IEnumerable<IInstalledExtension>

Parameters

  • contentTypeName
    Type: System.String
    The content type to filter the search by.

Return Value

Type: System.Collections.Generic.IEnumerable<IInstalledExtension>
A collection of IExtension objects that contain the metadata of all enabled extensions that contain the requested content type.

Remarks

Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.

The valid values for contentTypeName correspond to the children of the Content element.

.NET Framework Security

See Also

Reference

IVsExtensionManager Interface

GetEnabledExtensions Overload

Microsoft.VisualStudio.ExtensionManager Namespace