Partager via


ServiceProviderHierarchy Class

Definition

Acts as a hierarchical service provider.

public ref class ServiceProviderHierarchy sealed : System::Collections::Generic::SortedList<int, IServiceProvider ^>, IServiceProvider
public sealed class ServiceProviderHierarchy : System.Collections.Generic.SortedList<int,IServiceProvider>, IServiceProvider
type ServiceProviderHierarchy = class
    inherit SortedList<int, IServiceProvider>
    interface IServiceProvider
Public NotInheritable Class ServiceProviderHierarchy
Inherits SortedList(Of Integer, IServiceProvider)
Implements IServiceProvider
Inheritance
ServiceProviderHierarchy
Implements

Remarks

It stores IServiceProvider objects in a sorted dictionary for an ordered retrieval. When GetService is called to retrieve a service, the service providers are queried in a specific order. This is useful when multiple service providers are combined such as in the WindowPane implementation.

Constructors

ServiceProviderHierarchy()

Initializes a new instance of ServiceProviderHierarchy.

Methods

GetService(Type)

Gets a service of the specified type.

Applies to