ServiceProviderHierarchy.GetService(Type) Method

Definition

Gets a service of the specified type.

public:
 Platform::Object ^ GetService(Platform::Type ^ serviceType);

Parameters

serviceType
Type

The type of the service.

Returns

The requested service, or null if the service cannot be found. This service must be cast to the required service type.

Implements

Remarks

This method walks the hierarchy of services to find the requested service.

Applies to