IVsProjectBuildSystem::SetHostObject Method (String^, String^, Object^)

 

Sets the object used to communicate between MSBuild and the host IDE.

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

int SetHostObject(
	String^ pszTargetName,
	String^ pszTaskName,
	Object^ punkHostObject
)

Parameters

pszTargetName
Type: System::String^

[in] Pointer to a string containing the name of the build target.

pszTaskName
Type: System::String^

[in] Pointer to a string containing the name of the task for MSBuild to perform.

punkHostObject
Type: System::Object^

[in] Pointer to the T:Microsoft.VisualStudio.IUnknown interface of the host object.

Return Value

Type: System::Int32

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

From vsshell80.idl:

[C++]

HRESULT IVsProjectBuildSystem::SetHostObject(
   [in] LPCOLESTR pszTargetName, 
   [in] LPCOLESTR pszTaskName, 
   [in] IUnknown* punkHostObject
);
Return to top
Show: