Share via


ServiceProviderHierarchy Class

A hierarchical service provider that stores IServiceProvider objects in a sorted collection 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.

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

Syntax

'宣言
<CLSCompliantAttribute(False)> _
Public NotInheritable Class ServiceProviderHierarchy _
    Inherits SortedList(Of Integer, IServiceProvider) _
    Implements IServiceProvider
'使用
Dim instance As ServiceProviderHierarchy
[CLSCompliantAttribute(false)]
public sealed class ServiceProviderHierarchy : SortedList<int, IServiceProvider>, IServiceProvider
[CLSCompliantAttribute(false)]
public ref class ServiceProviderHierarchy sealed : public SortedList<int, IServiceProvider^>, 
    IServiceProvider
public final class ServiceProviderHierarchy extends SortedList<int, IServiceProvider> implements IServiceProvider

Inheritance Hierarchy

System.Object
  System.Collections.Generic.SortedList<Int32, IServiceProvider>
    Microsoft.VisualStudio.Shell.ServiceProviderHierarchy

Thread Safety

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

See Also

Reference

ServiceProviderHierarchy Members

Microsoft.VisualStudio.Shell Namespace