RegistrationExtensionsExportedTLimit, TActivatorData, TSingleRegistrationStyle Method |
Expose the registered service to MEF parts as an export.
Namespace:
Autofac.Integration.Mef
Assembly:
Autofac.Integration.Mef (in Autofac.Integration.Mef.dll) Version: 6.0.0+4280ac7e7f34f8dcbf61bbdf820a070216e453fc
Syntax public static IRegistrationBuilder<TLimit, TActivatorData, TSingleRegistrationStyle> Exported<TLimit, TActivatorData, TSingleRegistrationStyle>(
this IRegistrationBuilder<TLimit, TActivatorData, TSingleRegistrationStyle> registration,
Action<ExportConfigurationBuilder> configurationAction
)
where TSingleRegistrationStyle : SingleRegistrationStyle
<ExtensionAttribute>
Public Shared Function Exported(Of TLimit, TActivatorData, TSingleRegistrationStyle As SingleRegistrationStyle) (
registration As IRegistrationBuilder(Of TLimit, TActivatorData, TSingleRegistrationStyle),
configurationAction As Action(Of ExportConfigurationBuilder)
) As IRegistrationBuilder(Of TLimit, TActivatorData, TSingleRegistrationStyle)
Parameters
- registration
- Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle
The component being registered. - configurationAction
- Type: SystemActionExportConfigurationBuilder
Action on an object that configures the export.
Type Parameters
- TLimit
[Missing <typeparam name="TLimit"/> documentation for "M:Autofac.Integration.Mef.RegistrationExtensions.Exported``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Action{Autofac.Integration.Mef.ExportConfigurationBuilder})"]
- TActivatorData
[Missing <typeparam name="TActivatorData"/> documentation for "M:Autofac.Integration.Mef.RegistrationExtensions.Exported``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Action{Autofac.Integration.Mef.ExportConfigurationBuilder})"]
- TSingleRegistrationStyle
[Missing <typeparam name="TSingleRegistrationStyle"/> documentation for "M:Autofac.Integration.Mef.RegistrationExtensions.Exported``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},System.Action{Autofac.Integration.Mef.ExportConfigurationBuilder})"]
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TSingleRegistrationStyleA registration allowing registration to continue.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRegistrationBuilderTLimit,
TActivatorData,
TSingleRegistrationStyle. 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