 | ServiceLocatorImplBaseGetInstance Method (Type) |
Get an instance of the given serviceType.
Namespace: Microsoft.Practices.ServiceLocationAssembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntaxpublic virtual Object GetInstance(
Type serviceType
)
Public Overridable Function GetInstance (
serviceType As Type
) As Object
public:
virtual Object^ GetInstance(
Type^ serviceType
)
abstract GetInstance :
serviceType : Type -> Object
override GetInstance :
serviceType : Type -> Object
Parameters
- serviceType
- Type: SystemType
Type of object requested.
Return Value
Type:
ObjectThe requested service instance.
Implements
IServiceLocatorGetInstance(Type)
Exceptions
See Also