IServiceProvider インターフェイス
定義
サービス オブジェクト、つまり他のオブジェクトに対するカスタム サポートを提供するオブジェクトを取得するためのメカニズムを定義します。Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
public interface class IServiceProvider
public interface IServiceProvider
[System.Runtime.InteropServices.ComVisible(false)]
public interface IServiceProvider
type IServiceProvider = interface
[<System.Runtime.InteropServices.ComVisible(false)>]
type IServiceProvider = interface
Public Interface IServiceProvider
- 派生
- 属性
注釈
このインターフェイスは、他のオブジェクトにサービスを提供するクラスまたは値型によって実装されます。This interface is implemented by a class or value type that provides a service to other objects.
GetServiceこのインターフェイスのメソッドは、サービスを提供するオブジェクトを取得します。The GetService method of this interface obtains the object that provides the service.
インターフェイスは、、、 IServiceProvider 、などのさまざまな型によって実装され System.Web.HttpContext System.ComponentModel.LicenseContext System.ComponentModel.MarshalByValueComponent System.ComponentModel.Design.ServiceContainer ます。The IServiceProvider interface is implemented by a number of types, including System.Web.HttpContext, System.ComponentModel.LicenseContext, System.ComponentModel.MarshalByValueComponent, and System.ComponentModel.Design.ServiceContainer.
メソッド
GetService(Type) |
指定した型のサービス オブジェクトを取得します。Gets the service object of the specified type. |