次の方法で共有


ServiceProvider Constructors

Definition

Overloads

ServiceProvider(IServiceProvider)

Initializes a instance with an existing IServiceProvider interface.

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.

ServiceProvider(IServiceProvider)

Initializes a instance with an existing IServiceProvider interface.

public:
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ sp);
public:
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ sp);
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & sp);
public ServiceProvider (Microsoft.VisualStudio.OLE.Interop.IServiceProvider sp);
new Microsoft.VisualStudio.Shell.ServiceProvider : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> Microsoft.VisualStudio.Shell.ServiceProvider
Public Sub New (sp As IServiceProvider)

Parameters

Applies to

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.

public:
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ sp, bool defaultServices);
public:
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ sp, bool defaultServices);
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & sp, bool defaultServices);
public ServiceProvider (Microsoft.VisualStudio.OLE.Interop.IServiceProvider sp, bool defaultServices);
new Microsoft.VisualStudio.Shell.ServiceProvider : Microsoft.VisualStudio.OLE.Interop.IServiceProvider * bool -> Microsoft.VisualStudio.Shell.ServiceProvider
Public Sub New (sp As IServiceProvider, defaultServices As Boolean)

Parameters

sp
IServiceProvider

An IServiceProvider interface used to resolve services.

defaultServices
Boolean

Determines if this service should respond to queries for IServiceProvider and IObjectWithSite.

Remarks

Initializes a new ServiceProvider and uses the provided IServiceProvider interface to resolve services. If defaultServices is equal to true (the default) a query for the IServiceProvider interface will return the underlying COM service provider and a query for the IObjectWithSite interface will return this object. If defaultServices is equal to false these two services will not be provided and the service provider will be "transparent" and pass all requests for services to the given service provider.

Applies to