次の方法で共有


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 型のサービス オブジェクト) を返します。

実装

適用対象