| IServiceLocatorGetInstanceTService Method |
Get an instance of the given TService.
Namespace: Microsoft.Practices.ServiceLocationAssembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax TService GetInstance<TService>()
Function GetInstance(Of TService) As TService
generic<typename TService>
TService GetInstance()
abstract GetInstance : unit -> 'TService
Type Parameters
- TService
- Type of object requested.
Return Value
Type:
TServiceThe requested service instance.
Exceptions See Also