Returns true if the there is a service registered with the specified type and it has not been disabled.
Namespace:
Gallio.Runtime.ExtensibilityAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
bool HasService( Type serviceType ) |
| Visual Basic (Declaration) |
|---|
Function HasService ( _ serviceType As Type _ ) As Boolean |
Parameters
- serviceType
- Type: System..::.Type
The service type.
Return Value
True if there is at least one component registered for the given service type.
Remarks
When this method returns true it does not guarantee that there are any non-disabled components registered that implement the service neither does it guarantee that those components can actually be resolved without error.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if serviceType is null. |
