Click or drag to resize

RegistrationExtensionsPositionalParameterMappingTDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle Method

Changes the parameter mapping mode of the supplied delegate type to match parameters by position.

Namespace:  Autofac.Builder
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static IRegistrationBuilder<TDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle> PositionalParameterMapping<TDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle>(
	this IRegistrationBuilder<TDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle> registration
)
where TGeneratedFactoryActivatorData : GeneratedFactoryActivatorData
where TSingleRegistrationStyle : SingleRegistrationStyle

Parameters

registration
Type: Autofac.BuilderIRegistrationBuilderTDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle
Registration to change parameter mapping mode of.

Type Parameters

TDelegate
Factory delegate type.
TGeneratedFactoryActivatorData
Activator data type.
TSingleRegistrationStyle
Registration style.

Return Value

Type: IRegistrationBuilderTDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle
Registration builder allowing the registration to be configured.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRegistrationBuilderTDelegate, TGeneratedFactoryActivatorData, 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).
Exceptions
ExceptionCondition
ArgumentNullException Thrown if registration is .
See Also