Share via


ServiceProvider Members

Include Protected Members
Include Inherited Members

Provides an object that can proffer services by using both the managed and unmanaged IServiceProvider interfaces.

The ServiceProvider type exposes the following members.

Constructors

 

Name

Description

Public method

ServiceProvider

Overloaded. Initializes a new instance of a managed or unmanaged IServiceProvider.

Top

Methods

 

Name

Description

Public method

AddService

Overloaded. Adds the specified service to the internal collection of services.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it 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

Overloaded. Retrieves a service.

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

RemoveService

Overloaded. Removes the specified service.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Protected property

ParentProvider

Gets the current instance of the parent service provider.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IServiceProvider.QueryService

Performs as a factory for services that are exposed through an implementation of IServiceProvider.

Top

See Also

Reference

ServiceProvider Class

Microsoft.VisualStudio.Data.Framework Namespace