IComponentModel.GetExtensions<T> Method
Gets an enumeration of extensions from the default composition container, that is, objects (of which there can multiple instances) that exist in a given composition container. This is the same as calling GetExportedValues``1 directly.
Namespace: Microsoft.VisualStudio.ComponentModelHost
Assembly: Microsoft.VisualStudio.ComponentModelHost (in Microsoft.VisualStudio.ComponentModelHost.dll)
Syntax
'Declaration
Function GetExtensions(Of T As Class) As IEnumerable(Of T)
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 objects.
Return Value
Type: IEnumerable<T>
The instances of the requested objects.
.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.