Gets an service interface of given type.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public IXService GetService(
	Type serviceType
)

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

ExceptionCondition
System..::.ArgumentNullException serviceType is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also