Click or drag to resize

WithMetadataAttribute Constructor

Initializes a new instance of the WithMetadataAttribute class, specifying the key and value that the dependency should have in order to satisfy the parameter.

Namespace:  Autofac.Extras.AttributeMetadata
Assembly:  Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
Syntax
public WithMetadataAttribute(
	string key,
	Object value
)

Parameters

key
Type: SystemString
The key the dependency is expected to have to satisfy the parameter.
value
Type: SystemObject
The value the dependency is expected to have to satisfy the parameter.
See Also