Поделиться через


IXamlServiceProvider.GetService(TypeName) Метод

Определение

Возвращает объект службы указанного типа.

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

Параметры

type
TypeName Type

Тип объекта службы для получения.

Возвращаемое значение

Object

Platform::Object

IInspectable

Объект службы указанного типа или значение NULL, если объект службы этого типа отсутствует.

Применяется к