 | 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)
SyntaxTService 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