ServiceProviderHierarchy Class

 

Acts as a hierarchical service provider.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  System.Collections.Generic.SortedList<TKey, TValue>
    Microsoft.VisualStudio.Shell.ServiceProviderHierarchy

public sealed class ServiceProviderHierarchy : SortedList<int, IServiceProvider>, 
	IServiceProvider

NameDescription
System_CAPS_pubmethodServiceProviderHierarchy()

Initializes a new instance of ServiceProviderHierarchy.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: