Partager via


IVsProjectBuildSystem.BuildTarget(String, Boolean) Method

Definition

Sets the build target.

public:
 int BuildTarget(System::String ^ pszTargetName, [Runtime::InteropServices::Out] bool % pbSuccess);
int BuildTarget(std::wstring const & pszTargetName, [Runtime::InteropServices::Out] bool & pbSuccess);
public int BuildTarget (string pszTargetName, out bool pbSuccess);
abstract member BuildTarget : string * bool -> int
Public Function BuildTarget (pszTargetName As String, ByRef pbSuccess As Boolean) As Integer

Parameters

pszTargetName
String

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

pbSuccess
Boolean

[out] Pointer to a Boolean. Set to true if setting the target succeeds. Otherwise set to false.

Returns

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

Applies to