Kernel.GetAllServices<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all services of the specified type.
public System.Collections.Generic.IEnumerable<T> GetAllServices<T> () where T : class;
member this.GetAllServices : unit -> seq<'T (requires 'T : null)> (requires 'T : null)
Public Function GetAllServices(Of T As Class) () As IEnumerable(Of T)
Type Parameters
- T
Specifies the type of the services to retrieve.
Returns
IEnumerable<T>
An enumerable of all instances of the specified service that are registered.
Remarks
There is no guaranteed ordering on the results.