Click or drag to resize

RegistrationExtensionsResolveExportsT Method (IComponentContext, String)

Locate all of the MEF exports registered as supplying contract type T.

Namespace:  Autofac.Integration.Mef
Assembly:  Autofac.Integration.Mef (in Autofac.Integration.Mef.dll) Version: 4.0.0-CI-222
public static IEnumerable<Export> ResolveExports<T>(
	this IComponentContext context,
	string contractName


Type: AutofacIComponentContext
The context to resolve exports from.
Type: SystemString
The contract name.

Type Parameters


[Missing <typeparam name="T"/> documentation for "M:Autofac.Integration.Mef.RegistrationExtensions.ResolveExports``1(Autofac.IComponentContext,System.String)"]

Return Value

Type: IEnumerableExport
A list of exports.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IComponentContext. 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