IVsMSBuildHostObject::Init Method (IVsHierarchy^, IServiceProvider^)

 

Initializes a build host object.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

int Init(
	IVsHierarchy^ pHier,
	IServiceProvider^ pSP
)

Parameters

pHier
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] A IVsHierarchy interface to the project.

pSP
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

[in] A IServiceProvider interface to the service provider.

Return Value

Type: System::Int32

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

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

From vsshell90.idl:

HRESULT Init(
    [in] IVsHierarchy* pHier,
    [in] IServiceProvider* pSP
);
Return to top
Show: