要求されたサービスがある場合は、そのサービスを取得します。
Public Overridable Function GetService( _
ByVal type As Type _) As Object Implements IServiceProvider.GetService
[C#]
public virtual object GetService(Typetype);
[C++]
public: virtual Object* GetService(Type* type);
[JScript]
public function GetService(
type : Type) : Object;
パラメータ
- type
取得するサービスの型。
戻り値
サービスのインスタンス。サービスが見つからない場合は 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 ファミリ
参照
LicenseContext クラス | LicenseContext メンバ | System.ComponentModel 名前空間