Sdílet prostřednictvím


ServiceProviderWithSite Class

Definition

Provides an object that proffers services using both the managed and unmanaged versions of the ServiceProvider interface, and can be sited using the IObjectWithSite interface.

public ref class ServiceProviderWithSite abstract : Microsoft::VisualStudio::Data::ServiceProvider, Microsoft::VisualStudio::OLE::Interop::IObjectWithSite
public abstract class ServiceProviderWithSite : Microsoft.VisualStudio.Data.ServiceProvider, Microsoft.VisualStudio.OLE.Interop.IObjectWithSite
type ServiceProviderWithSite = class
    inherit ServiceProvider
    interface IObjectWithSite
Public MustInherit Class ServiceProviderWithSite
Inherits ServiceProvider
Implements IObjectWithSite
Inheritance
ServiceProviderWithSite
Derived
Implements

Constructors

ServiceProviderWithSite()

Class constructor. Instantiates a new instance of the ServiceProviderWithSite class.

Properties

ServiceTypes

Retrieves a list of service types used to convert the unmanaged QueryService method call, in which a service GUID is specified, into a managed IServiceProvider.GetService method call, in which a managed type is specified.

(Inherited from ServiceProvider)
Site

Retrieves or sets the site object instance.

Methods

GetService(Guid)

Retrieves a service with a specified service GUID.

(Inherited from ServiceProvider)
GetService(Type)

Retrieves a service of the specified type.

(Inherited from ServiceProvider)
GetServiceImpl(Guid)

Provides the implementation for retrieving a service with a specific GUID.

(Inherited from ServiceProvider)
GetServiceImpl(Type)

Provides the implementation for retrieving a service of a specific type.

(Inherited from ServiceProvider)
OnSiteChanged(EventArgs)

Raises the SiteChanged event.

Events

SiteChanged

Event raised when the Site property has changed.

Explicit Interface Implementations

IObjectWithSite.GetSite(Guid, IntPtr)

Retrieves the last site set using the IObjectWithSite.SetSite(Object) method. If there is no known site, an exception is thrown.

IObjectWithSite.SetSite(Object)

Provides a site's IUnknown pointer to a given object.

IServiceProvider.QueryService(Guid, Guid, IntPtr)

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

(Inherited from ServiceProvider)

Extension Methods

QueryService(IServiceProvider, Guid)

Gets a service exposed by a service provider based on its service GUID.

QueryService<TService>(IServiceProvider)

Gets a service exposed by a service provider based on its service type.

Applies to