IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyleWithMetadata Method (String, Object) |
Associates data with the component.
Namespace:
Autofac.Builder
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> WithMetadata(
string key,
Object value
)
Function WithMetadata (
key As String,
value As Object
) As IRegistrationBuilder(Of TLimit, TActivatorData, TRegistrationStyle)
Parameters
- key
- Type: SystemString
Key by which the data can be located. - value
- Type: SystemObject
The data value.
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TRegistrationStyleA registration builder allowing further configuration of the component.
See Also