| IServiceLocatorGetInstance 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)
Syntax Object GetInstance(
Type serviceType
)
Function GetInstance (
serviceType As Type
) As Object
Object^ GetInstance(
Type^ serviceType
)
abstract GetInstance :
serviceType : Type -> Object
Parameters
- serviceType
- Type: SystemType
Type of object requested.
Return Value
Type:
ObjectThe requested service instance.
Exceptions See Also