IComponentModel::GetService<T> Method ()

 

Gets a service from the default composition container, i.e. an object of which there can only a single instance exist in a given composition container. This is the same as calling GetExportedValue<T> directly.

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

generic<typename T>
where T : ref class
T GetService()

Return Value

Type: T

The instance of the requested object.

Type Parameters

T

The type of object.

Return to top
Show: