IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyleNamed Method (String, Type) |
Provide a textual name that can be used to retrieve the component.
Namespace:
Autofac.Builder
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> Named(
string serviceName,
Type serviceType
)
Function Named (
serviceName As String,
serviceType As Type
) As IRegistrationBuilder(Of TLimit, TActivatorData, TRegistrationStyle)
Parameters
- serviceName
- Type: SystemString
Named service to associate with the component. - serviceType
- Type: SystemType
The service type provided by the component.
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TRegistrationStyleA registration builder allowing further configuration of the component.
See Also