Click or drag to resize
DigitalRuneServiceLocatorImplBaseGetInstance Method (Type)
Get an instance of the given serviceType.

Namespace: Microsoft.Practices.ServiceLocation
Assembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
public virtual Object GetInstance(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
Type of object requested.

Return Value

Type: Object
The requested service instance.

Implements

IServiceLocatorGetInstance(Type)
Exceptions
ExceptionCondition
ActivationExceptionif there is an error resolving the service instance.
See Also