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

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