ServiceProvider Class

 

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

Namespace:   Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)


[ComVisibleAttribute(true)]
public class ServiceProvider : IServiceContainer, IServiceProvider, 
	IServiceProvider

NameDescription
System_CAPS_pubmethodServiceProvider()

Initializes a new instance of a managed or unmanaged IServiceProvider.

System_CAPS_pubmethodServiceProvider(IServiceProvider)

Wraps an unmanaged IServiceProvider interface that is accessible through the managed IServiceProvider interface.

System_CAPS_pubmethodServiceProvider(IServiceProvider)

Initializes a new instance of an unmanaged IServiceProvider interface.

NameDescription
System_CAPS_protpropertyParentProvider

Gets the current instance of the parent service provider.

NameDescription
System_CAPS_pubmethodAddService(Type, Object)

Adds the specified service to the internal collection of services.

System_CAPS_pubmethodAddService(Type, Object, Boolean)

Adds the specified service to the collection of service objects or to the parent service container.

System_CAPS_pubmethodAddService(Type, ServiceCreatorCallback)

Adds the specified service to the internal collection of services.

System_CAPS_pubmethodAddService(Type, ServiceCreatorCallback, Boolean)

Adds the specified service to the internal collection of services or to the parent service container.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetService(Guid)

Retrieves a service with a specified service GUID.

System_CAPS_pubmethodGetService(Type)

Retrieves a service of the specified type.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveService(Type)

Removes the specified service from the internal services collection

System_CAPS_pubmethodRemoveService(Type, Boolean)

Removes the specified service from the internal services collection or from the parent service container.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIServiceProvider.QueryService(Guid, Guid, IntPtr)

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

System_CAPS_noteNote

In the syntax block above, the class inheritance derives from both the managed and the unmanaged IServiceProvider interfaces. That is, the first (unmanaged) derives from the IServiceProvider interface and the second (managed) derives from IServiceProvider.

This class serves two purposes. First, it provides a managed class for creating an implementation of the unmanaged or managed IServiceProvider interfaces. Second, it provides a managed class for wrapping and extending an existing implementation of the unmanaged or managed IServiceProvider interfaces.

For both cases, the managed IServiceProvider interface is also implemented, so managed clients of the object can communicate with the object by using managed-friendly code.

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

Return to top
Show: