'宣言 Public Overloads Sub RegisterService( _ ByVal serviceType As Type, _ ByVal service As Object _ )
public void RegisterService( Type serviceType, object service )
| 例外 | 解説 |
|---|---|
| System.ArgumentNullException | 指定した serviceType が null 値の場合に発生します。 |
| System.ArgumentNullException | 指定した service が null 値の場合に発生します。 |
特定のタイプの 1 つのみのサービス インスタンスを登録できます。