IDebugBoundBreakpoint2::SetCondition

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Sets or changes the condition associated with this bound breakpoint.

Syntax

HRESULT SetCondition( 
   BP_CONDITION bpCondition
);
int SetCondition( 
   enum_BP_CONDITION bpCondition
);

Parameters

bpCondition
[in] A value from the BP_CONDITION enumeration that describes the condition.

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_BP_DELETED if the state of the bound breakpoint object is set to BPS_DELETED (part of the BP_STATE enumeration).

Remarks

Any condition that was previously associated with this breakpoint is lost.

See also