Click or drag to resize

AutofacAttributeExtensionsWithAttributedMetadataTLimit, TScanningActivatorData, TRegistrationStyle Method (IRegistrationBuilderTLimit, TScanningActivatorData, TRegistrationStyle)

This method can be invoked with the assembly scanner to register metadata that is declared loosely using attributes marked with the MetadataAttributeAttribute. All of the marked attributes are used together to create a common set of dictionary values that constitute the metadata on the type.

Namespace:  Autofac.Extras.AttributeMetadata
Assembly:  Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
Syntax
public static IRegistrationBuilder<TLimit, TScanningActivatorData, TRegistrationStyle> WithAttributedMetadata<TLimit, TScanningActivatorData, TRegistrationStyle>(
	this IRegistrationBuilder<TLimit, TScanningActivatorData, TRegistrationStyle> builder
)
where TScanningActivatorData : ScanningActivatorData

Parameters

builder
Type: Autofac.BuilderIRegistrationBuilderTLimit, TScanningActivatorData, TRegistrationStyle
The registration builder containing registration data.

Type Parameters

TLimit
The type of the registration limit.
TScanningActivatorData
Activator data type.
TRegistrationStyle
Registration style type.

Return Value

Type: IRegistrationBuilderTLimit, TScanningActivatorData, TRegistrationStyle
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 IRegistrationBuilderTLimit, TScanningActivatorData, 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).
Exceptions
ExceptionCondition
ArgumentNullException Thrown if builder is .
See Also