Gets an service interface of given type.
Namespace:
SGP.XUtilityAssembly: SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718
Syntax
Parameters
- serviceType
- Type: System..::.Type
The service type.
Remarks
Gets an object which implements an interface serviceType and have been added to XServiceManager
(AddService(IXService)).
In this way is possible to obtain globally registered service.
If the service was not initilized, the library calls InitializeService()()().
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | serviceType is nullNothingnullptra null reference (Nothing in Visual Basic). |