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.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public NotInheritable Class ServiceProviderHierarchy _
Inherits SortedList(Of Integer, IServiceProvider) _
Implements IServiceProvider
'Usage
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.