| ServiceContainerGetService Method |
Gets the service instance of the specified type.
Namespace: DigitalRune.ServiceLocationAssembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax public Object GetService(
Type serviceType
)
Public Function GetService (
serviceType As Type
) As Object
public:
virtual Object^ GetService(
Type^ serviceType
) sealed
abstract GetService :
serviceType : Type -> Object
override GetService :
serviceType : Type -> Object
Parameters
- serviceType
- Type: SystemType
An object that specifies the type of service object to get.
Return Value
Type:
Object
A service instance of type
serviceType. Or
if
there is no service instance of type
serviceType.
Implements
IServiceProviderGetService(Type)See Also