IComponentModel.GetExtensions<T> Method
Gets an enumeration of extensions from the default composition container
Namespace: Microsoft.VisualStudio.ComponentModelHost
Assembly: Microsoft.VisualStudio.ComponentModelHost (in Microsoft.VisualStudio.ComponentModelHost.dll)
Syntax
'Déclaration
Function GetExtensions(Of T As Class) As IEnumerable(Of T)
'Utilisation
Dim instance As IComponentModel
Dim returnValue As IEnumerable(Of T)
returnValue = instance.GetExtensions()
IEnumerable<T> GetExtensions<T>()
where T : class
generic<typename T>
where T : ref class
IEnumerable<T>^ GetExtensions()
abstract GetExtensions : unit -> IEnumerable<'T> when 'T : not struct
JScript does not support generic types or methods.
Type Parameters
- T
The type of the extension.
Return Value
Type: System.Collections.Generic.IEnumerable<T>
A list of extensions.
Remarks
There can be multiple instances of an extension in a given composition container. Calling this method is the same as calling GetExportedValue.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.