| ServiceContainerGetInstanceTService Method |
Gets an instance of the given service type.
Namespace: DigitalRune.ServiceLocationAssembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax public TService GetInstance<TService>()
Public Function GetInstance(Of TService) As TService
public:
generic<typename TService>
virtual TService GetInstance() sealed
abstract GetInstance : unit -> 'TService
override GetInstance : unit -> 'TService
Type Parameters
- TService
- The type of the service requested.
Return Value
Type:
TService
The requested service instance or
if the service has not been
registered.
Implements
IServiceLocatorGetInstanceTServiceExceptions See Also