| ServiceContainerGetInstance Method (Type) |
Get an instance of the given service type.
Namespace: DigitalRune.ServiceLocationAssembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax public Object GetInstance(
Type serviceType
)
Public Function GetInstance (
serviceType As Type
) As Object
public:
virtual Object^ GetInstance(
Type^ serviceType
) sealed
abstract GetInstance :
serviceType : Type -> Object
override GetInstance :
serviceType : Type -> Object
Parameters
- serviceType
- Type: SystemType
The type of the service requested.
Return Value
Type:
Object
The requested service instance or
if the service has not been
registered.
Implements
IServiceLocatorGetInstance(Type)Exceptions See Also