다음을 통해 공유


AsyncServiceProvider Constructors

Definition

Overloads

AsyncServiceProvider(IAsyncServiceProvider)

Creates a new AsyncServiceProvider chaining to the other ctor and providing 'true' for the 'defaultServices' parameter.

AsyncServiceProvider(IAsyncServiceProvider)

Creates a new AsyncServiceProvider chaining to the other ctor and providing 'true' for the 'defaultServices' parameter.

AsyncServiceProvider(IAsyncServiceProvider, Boolean)

Creates a new AsyncServiceProvider object and uses the given interface to resolve services. If defaultServices is true (the default used by the ctor that doesn't take a 'defaultServices' parameter) this service provider will respond to IObjectWithSite as a service. A query for IObjectWithSite will return this object. If false is passed in for defaultServices this service will not be provided and the service provider will be "transparent".

AsyncServiceProvider(IAsyncServiceProvider, Boolean)

Creates a new AsyncServiceProvider object and uses the given interface to resolve services. If defaultServices is true (the default used by the ctor that doesn't take a 'defaultServices' parameter) this service provider will respond to IObjectWithSite as a service. A query for IObjectWithSite will return this object. If false is passed in for defaultServices this service will not be provided and the service provider will be "transparent".

AsyncServiceProvider(IAsyncServiceProvider)

Creates a new AsyncServiceProvider chaining to the other ctor and providing 'true' for the 'defaultServices' parameter.

public:
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::COMAsyncServiceProvider::IAsyncServiceProvider ^ serviceProvider);
public AsyncServiceProvider (Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider serviceProvider);
new Microsoft.VisualStudio.Shell.AsyncServiceProvider : Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider -> Microsoft.VisualStudio.Shell.AsyncServiceProvider
Public Sub New (serviceProvider As IAsyncServiceProvider)

Parameters

serviceProvider
Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider

The underlying service provider to use to answer requests.

Applies to

AsyncServiceProvider(IAsyncServiceProvider)

Creates a new AsyncServiceProvider chaining to the other ctor and providing 'true' for the 'defaultServices' parameter.

public:
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider ^ serviceProvider);
public:
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider ^ serviceProvider);
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider const & serviceProvider);
public AsyncServiceProvider (Microsoft.VisualStudio.Shell.Interop.IAsyncServiceProvider serviceProvider);
new Microsoft.VisualStudio.Shell.AsyncServiceProvider : Microsoft.VisualStudio.Shell.Interop.IAsyncServiceProvider -> Microsoft.VisualStudio.Shell.AsyncServiceProvider
Public Sub New (serviceProvider As IAsyncServiceProvider)

Parameters

serviceProvider
IAsyncServiceProvider

The underlying service provider to use to answer requests.

Applies to

AsyncServiceProvider(IAsyncServiceProvider, Boolean)

Creates a new AsyncServiceProvider object and uses the given interface to resolve services. If defaultServices is true (the default used by the ctor that doesn't take a 'defaultServices' parameter) this service provider will respond to IObjectWithSite as a service. A query for IObjectWithSite will return this object. If false is passed in for defaultServices this service will not be provided and the service provider will be "transparent".

public:
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::COMAsyncServiceProvider::IAsyncServiceProvider ^ serviceProvider, bool defaultServices);
public AsyncServiceProvider (Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider serviceProvider, bool defaultServices);
new Microsoft.VisualStudio.Shell.AsyncServiceProvider : Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider * bool -> Microsoft.VisualStudio.Shell.AsyncServiceProvider
Public Sub New (serviceProvider As IAsyncServiceProvider, defaultServices As Boolean)

Parameters

serviceProvider
Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider

The underlying service provider to use to answer requests.

defaultServices
Boolean

Indicates if this object will respond to queries for IObjectWithSite or not.

Applies to

AsyncServiceProvider(IAsyncServiceProvider, Boolean)

Creates a new AsyncServiceProvider object and uses the given interface to resolve services. If defaultServices is true (the default used by the ctor that doesn't take a 'defaultServices' parameter) this service provider will respond to IObjectWithSite as a service. A query for IObjectWithSite will return this object. If false is passed in for defaultServices this service will not be provided and the service provider will be "transparent".

public:
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider ^ serviceProvider, bool defaultServices);
public:
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider ^ serviceProvider, bool defaultServices);
 AsyncServiceProvider(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider const & serviceProvider, bool defaultServices);
public AsyncServiceProvider (Microsoft.VisualStudio.Shell.Interop.IAsyncServiceProvider serviceProvider, bool defaultServices);
new Microsoft.VisualStudio.Shell.AsyncServiceProvider : Microsoft.VisualStudio.Shell.Interop.IAsyncServiceProvider * bool -> Microsoft.VisualStudio.Shell.AsyncServiceProvider
Public Sub New (serviceProvider As IAsyncServiceProvider, defaultServices As Boolean)

Parameters

serviceProvider
IAsyncServiceProvider

The underlying service provider to use to answer requests.

defaultServices
Boolean

Indicates if this object will respond to queries for IObjectWithSite or not.

Applies to