Freigeben über


VsMSBuildTaskFileManagerClass.Init(IVsHierarchy, IServiceProvider) Method

Definition

Initializes a build host object.

public:
 virtual int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSP) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildHostObject::Init;
public:
 virtual int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSP);
public:
 virtual int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ pSP) = Microsoft::VisualStudio::Shell::Interop::IVsMSBuildHostObject::Init;
 virtual int Init(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & pSP);
public virtual 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
override this.Init : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> int
Public Overridable Function Init (pHier As IVsHierarchy, pSP As IServiceProvider) As Integer

Parameters

pHier
IVsHierarchy

[in] The host project hierarchy.

pSP
IServiceProvider

[in] The global service provider.

Returns

Returns S_OK if the method is successful, E_FAIL if the method fails.

Implements

Applies to