Autofac .NET Inversion of Control Container
IsRegistered<(Of <(TService>)>) Method (context)
NamespacesAutofacResolutionExtensionsIsRegistered<(Of <(TService>)>)(IComponentContext)
Determine whether the specified service is available in the context.
Declaration Syntax
C#Visual BasicVisual C++
public static bool IsRegistered<TService>(
	IComponentContext context
)
Public Shared Function IsRegistered(Of TService) ( _
	context As IComponentContext _
) As Boolean
public:
generic<typename TService>
static bool IsRegistered(
	IComponentContext^ context
)
Generic Template Parameters
TService
The service to test for the registration of.
Parameters
context (IComponentContext)
The context from which to resolve the service.
Return Value
True if the service is registered.

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)