Determine whether the specified service is available in the context.
| C# | Visual Basic | Visual C++ |
public static bool IsRegistered( IComponentContext context, string serviceName, Type serviceType )
Public Shared Function IsRegistered ( _ context As IComponentContext, _ serviceName As String, _ serviceType As Type _ ) As Boolean
public: static bool IsRegistered( IComponentContext^ context, String^ serviceName, Type^ serviceType )
- context (IComponentContext)
- The context from which to resolve the service.
- serviceName (String)
- The name of the service to test for the registration of.
- serviceType (Type)
- Type type of the service to test for the registration of.
True if the service is registered.