Share via


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。

適用対象