IXamlServiceProvider.GetService(TypeName) Method

Definition

Gets the service object of the specified type.

public:
 Platform::Object ^ GetService(TypeName type);
IInspectable GetService(TypeName const& type);
public object GetService(System.Type type);
function getService(type)
Public Function GetService (type As Type) As Object

Parameters

type
TypeName Type

The type of service object to get.

Returns

Object

Platform::Object

IInspectable

A service object of the specified type, or null if there is no service object of that type.

Applies to