다음을 통해 공유


IDebugPendingBreakpoint2::SetCondition

Note

This article applies to Visual Studio 2015. 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 the pending breakpoint.

Syntax

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

Parameters

bpCondition
[in] A BP_CONDITION structure that specifies the condition to set.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Any condition that was previously associated with the pending breakpoint is lost. All breakpoints bound from this pending breakpoint are called to set their condition to the value specified in the bpCondition parameter.

See Also

IDebugPendingBreakpoint2
BP_CONDITION