IVsProjectBuildSystem.SetHostObject Method
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)
Syntax
'Declaration
Function SetHostObject ( _
pszTargetName As String, _
pszTaskName As String, _
punkHostObject As Object _
) As Integer
int SetHostObject(
string pszTargetName,
string pszTaskName,
Object punkHostObject
)
int SetHostObject(
[InAttribute] String^ pszTargetName,
[InAttribute] String^ pszTaskName,
[InAttribute] Object^ punkHostObject
)
abstract SetHostObject :
pszTargetName:string *
pszTaskName:string *
punkHostObject:Object -> int
function SetHostObject(
pszTargetName : String,
pszTaskName : String,
punkHostObject : Object
) : int
Parameters
pszTargetName
Type: String[in] Pointer to a string containing the name of the build target.
pszTaskName
Type: String[in] Pointer to a string containing the name of the task for MSBuild to perform.
punkHostObject
Type: Object[in] Pointer to the IUnknown interface of the host object.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
[C++]
HRESULT IVsProjectBuildSystem::SetHostObject(
[in] LPCOLESTR pszTargetName,
[in] LPCOLESTR pszTaskName,
[in] IUnknown* punkHostObject
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.