要求したサービスを取得します。
Public Overridable Function GetService( _
ByVal serviceType As Type _) As Object Implements IServiceProvider.GetService
[C#]
public virtual object GetService(TypeserviceType);
[C++]
public: virtual Object* GetService(Type* serviceType);
[JScript]
public function GetService(
serviceType : Type) : Object;
パラメータ
- serviceType
取得するサービスの型。
戻り値
サービスが見つかった場合はそのサービスのインスタンス。サービスが見つからなかった場合は null 参照 (Visual Basic では Nothing) 。
実装
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ServiceContainer クラス | ServiceContainer メンバ | System.ComponentModel.Design 名前空間 | IServiceProvider