Click or drag to resize

RegistrationExtensionsPropertiesAutowiredTLimit, TActivatorData, TRegistrationStyle Method (IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle, PropertyWiringOptions)

Configure the component so that any properties whose types are registered in the container will be wired to instances of the appropriate service.

Namespace:  Autofac
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> PropertiesAutowired<TLimit, TActivatorData, TRegistrationStyle>(
	this IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> registration,
	PropertyWiringOptions wiringFlags = PropertyWiringOptions.None
)

Parameters

registration
Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
Registration to auto-wire properties.
wiringFlags (Optional)
Type: AutofacPropertyWiringOptions
Set wiring options such as circular dependency wiring support.

Type Parameters

TLimit

[Missing <typeparam name="TLimit"/> documentation for "M:Autofac.RegistrationExtensions.PropertiesAutowired``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},Autofac.PropertyWiringOptions)"]

TActivatorData

[Missing <typeparam name="TActivatorData"/> documentation for "M:Autofac.RegistrationExtensions.PropertiesAutowired``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},Autofac.PropertyWiringOptions)"]

TRegistrationStyle

[Missing <typeparam name="TRegistrationStyle"/> documentation for "M:Autofac.RegistrationExtensions.PropertiesAutowired``3(Autofac.Builder.IRegistrationBuilder{``0,``1,``2},Autofac.PropertyWiringOptions)"]

Return Value

Type: IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
A registration builder allowing further configuration of the component.

Usage Note

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