| ServiceLocatorImplBaseGetInstanceTService 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 public virtual TService GetInstance<TService>()
Public Overridable Function GetInstance(Of TService) As TService
public:
generic<typename TService>
virtual TService GetInstance()
abstract GetInstance : unit -> 'TService
override GetInstance : unit -> 'TService
Type Parameters
- TService
- Type of object requested.
Return Value
Type:
TServiceThe requested service instance.
Implements
IServiceLocatorGetInstanceTServiceExceptions See Also