言語

ServiceProvider.GetService メソッド

定義

サービスオブジェクトを取得します。

オーバーロード

名前 説明
GetService(Guid)

サービスオブジェクトを取得します。

GetService(Type)

サービスオブジェクトを取得します。

GetService(Guid)

サービスオブジェクトを取得します。

public:
 System::Object ^ GetService(Guid guid);
public object GetService(Guid guid);
member this.GetService : Guid -> obj
Public Function GetService (guid As Guid) As Object

パラメーター

guid
Guid

取得すべきサービスオブジェクトの種類を指定するオブジェクトのguidです。

返品

Objectは型guidのサービスオブジェクトを返します。

適用対象

GetService(Type)

サービスオブジェクトを取得します。

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService(Type serviceType);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

パラメーター

serviceType
Type

取得するサービス オブジェクトの種類を指定するオブジェクト。

返品

Objectは型serviceTypeのサービスオブジェクトを返します。

実装

適用対象