IServiceProvider.GetService Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the service object of the specified type.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- serviceType
- Type: System.Type
An object that specifies the type of service object to get.
Return Value
Type: System.ObjectA service object of type serviceType.
-or-
Nothing if there is no service object of type serviceType.
Show: