Click or drag to resize

CurrentGetRequiredService Method

Overload List
 NameDescription
Public methodStatic memberGetRequiredServiceT Retrieves the service of type T from the provider. If the service cannot be found, a ServiceNotFoundException will be thrown.
Public methodStatic memberGetRequiredServiceT, U Gets the required service. The service is primarily being searched with key T. If it is not found with this key, it is search with key U, thus U has to be a base class or an interface of type T. If the service is found with this second key U and is of type T, the service will be register with the key T in order to avoid further searching.
Top
See Also