Partilhar via


ServiceProvider Constructors

Definition

Overloads

ServiceProvider()

Class constructor for a managed service provider (IServiceProvider) that is accessible through the unmanaged IServiceProvider interface.

ServiceProvider(IServiceProvider)

Class constructor for wrapping an unmanaged IServiceProvider interface that is accessible through the managed IServiceProvider interface.

ServiceProvider()

Class constructor for a managed service provider (IServiceProvider) that is accessible through the unmanaged IServiceProvider interface.

protected:
 ServiceProvider();
protected ServiceProvider ();
Protected Sub New ()

Applies to

ServiceProvider(IServiceProvider)

Important

This API is not CLS-compliant.

Class constructor for wrapping an unmanaged IServiceProvider interface that is accessible through the managed IServiceProvider interface.

public:
 ServiceProvider(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider);
[System.CLSCompliant(false)]
public ServiceProvider (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider);
public ServiceProvider (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider);
[<System.CLSCompliant(false)>]
new Microsoft.VisualStudio.Data.ServiceProvider : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> Microsoft.VisualStudio.Data.ServiceProvider
new Microsoft.VisualStudio.Data.ServiceProvider : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> Microsoft.VisualStudio.Data.ServiceProvider
Public Sub New (serviceProvider As IServiceProvider)

Parameters

serviceProvider
IServiceProvider

An unmanaged IServiceProvider interface object to wrap.

Attributes

Exceptions

The serviceProvider parameter is null.

Applies to