Determine whether the specified service is available in the context.
| C# | Visual Basic | Visual 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 )
- TService
- The service to test for the registration of.
- context (IComponentContext)
- The context from which to resolve the service.
True if the service is registered.