Свойство | Тип | Описание | |
---|---|---|---|
Default | ServiceProviderQueryHandler |
Метод | Описание | |
---|---|---|
FindService ( object context, |
Attempts to locate a service of a given type based on a given context. If the service is not available, a null reference is returned.
|
|
GetService ( object context, |
Gets a service of a given type based on a given context. If the service is not available, an exception is thrown.
|
|
GetServiceProvider ( object context ) : IServiceProvider |
Gets an IServiceProvider object based on a supplied context and which can be used to request further services.
|
Метод | Описание | |
---|---|---|
CreateServiceContainer ( object context ) : IServiceProvider | ||
ServiceCenter ( ) : System |
public static FindService ( object context, |
||
context | object | |
serviceType | ||
Результат | object |
public static GetService ( object context, |
||
context | object | |
serviceType | ||
Результат | object |
public static GetServiceProvider ( object context ) : IServiceProvider | ||
context | object | |
Результат | IServiceProvider |