Sdílet prostřednictvím


IVsMSBuildHostObject.Init(IVsHierarchy, IServiceProvider) Method

Definition

Initializes a build host object.

public:
 int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSP);
public:
 int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSP);
int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & pSP);
public int Init (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, Microsoft.VisualStudio.OLE.Interop.IServiceProvider pSP);
abstract member Init : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Public Function Init (pHier As IVsHierarchy, pSP As IServiceProvider) As Integer

Parameters

pHier
IVsHierarchy

[in] A IVsHierarchy interface to the project.

pSP
IServiceProvider

[in] A IServiceProvider interface to the service provider.

Returns

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

Remarks

Project systems are expected to call this method after calling MSBuild to build a target (real build or Intellisense build).

COM Signature

From vsshell90.idl:

HRESULT Init(  
    [in] IVsHierarchy* pHier,  
    [in] IServiceProvider* pSP  
);  

Applies to