Partager via


ServiceProvider Members

Include Protected Members
Include Inherited Members

Provides a unified service provider for managed VSPackages.

The ServiceProvider type exposes the following members.

Constructors

  Name Description
Public method ServiceProvider(IServiceProvider) Initializes a instance with an existing IServiceProvider interface.
Public method ServiceProvider(IServiceProvider, Boolean) Initializes a new instance of the ServiceProvider class with an existing IServiceProvider object and optionally passes all requests to the underlying service provider.

Top

Methods

  Name Description
Public methodStatic member CreateFromSetSite
Public method Dispose Releases the resources used by the ServiceProvider object.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetService(Guid) Gets the specified service from the unmanaged service provider.
Public method GetService(Type) Gets type-based services from the unmanaged service provider.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Properties

  Name Description
Public propertyStatic member GlobalProvider

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IObjectWithSite.GetSite Gets the current site object to resolve services.
Explicit interface implemetationPrivate method IObjectWithSite.SetSite Sets the site object to resolve services.

Top

See Also

Reference

ServiceProvider Class

Microsoft.VisualStudio.Shell Namespace