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
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.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
[<SealedAttribute>]
[<CLSCompliantAttribute(false)>]
type ServiceProviderHierarchy =  
    class
        inherit SortedList<int, IServiceProvider>
        interface IServiceProvider
    end
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