Click or drag to resize

ExtensionMethodsGetExportedValuesT(IServiceProvider) Method

Gets the exported values of the specified type.

Namespace: TomsToolbox.Composition.MicrosoftExtensions
Assembly: TomsToolbox.Composition.MicrosoftExtensions (in TomsToolbox.Composition.MicrosoftExtensions.dll) Version: 2.20.0+81722655bc5ac69e82709ab0d5f512a9f7e83ea5
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static IEnumerable<T> GetExportedValues<T>(
	this IServiceProvider serviceProvider
)
where T : class

Parameters

serviceProvider  IServiceProvider
The service provider.

Type Parameters

T
The type of the exported values.

Return Value

IEnumerableT
An enumerable of exported values of type T.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IServiceProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also