IComponentRegistryTryGetRegistration Method |
Attempts to find a default registration for the specified service.
Namespace:
Autofac.Core
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax bool TryGetRegistration(
Service service,
out IComponentRegistration registration
)
Function TryGetRegistration (
service As Service,
<OutAttribute> ByRef registration As IComponentRegistration
) As Boolean
Parameters
- service
- Type: Autofac.CoreService
The service to look up. - registration
- Type: Autofac.CoreIComponentRegistration
The default registration for the service.
Return Value
Type:
BooleanTrue if a registration exists.
See Also