Compartilhar via


IVsDataEnvironment.Initialize(IServiceProvider) Method

Definition

Initialize the IVsDataEnvironment interface with a specific IServiceProvider.

public:
 int Initialize(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pServiceProvider);
public:
 int Initialize(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pServiceProvider);
int Initialize(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & pServiceProvider);
public int Initialize (Microsoft.VisualStudio.OLE.Interop.IServiceProvider pServiceProvider);
abstract member Initialize : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Public Function Initialize (pServiceProvider As IServiceProvider) As Integer

Parameters

pServiceProvider
IServiceProvider

Pointer to an IServiceProvider to use in initializing the interface.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to