Resolves a handle for a single component that implements a given service type.
Namespace:
Gallio.Runtime.ExtensibilityAssembly: Gallio (in Gallio.dll) Version: 3.2.0.0 (3.2.528.0)
Syntax
| C# |
|---|
ComponentHandle ResolveHandle( Type serviceType ) |
| Visual Basic (Declaration) |
|---|
Function ResolveHandle ( _ serviceType As Type _ ) As ComponentHandle |
Parameters
- serviceType
- Type: System..::.Type
The service type.
Return Value
The handle for the component implements the service.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if serviceType is null. |
| Gallio.Runtime..::.RuntimeException | Thrown if no component was found or if a component could not be resolved. |
