ServiceProviderHierarchy Класс

Определение

Действует как иерархический поставщик услуг.

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
Наследование
ServiceProviderHierarchy
Реализации

Комментарии

Он сохраняет IServiceProvider объекты в отсортированном словаре для упорядоченного извлечения. Когда GetService вызывается для получения службы, поставщики служб запрашиваются в определенном порядке. Это полезно, если несколько поставщиков служб объединены, например, в WindowPane реализации.

Конструкторы

ServiceProviderHierarchy()

Инициализирует новый экземпляр ServiceProviderHierarchy.

Методы

GetService(Type)

Получает службу указанного типа.

Применяется к