IServiceProvider.GetService Method

July 28, 2014

Gets the service object of the specified type.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type
An object that specifies the type of service object to get.

Return Value

Type: System.Object
A service object of type serviceType.
-or-
null if there is no service object of type serviceType.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft