Share via


BreakpointTarget.Expression Property

Definition

Gets or sets an expression to be evaluated to determine if the breakpoint should occur.

public:
 property System::String ^ Expression { System::String ^ get(); void set(System::String ^ value); };
public string Expression { get; set; }
member this.Expression : string with get, set
Public Property Expression As String

Property Value

A String containing the expression to evaluate.

Examples

The following code example shows how to set the breakpoint expression to evaluate the value of a variable.

bp.Expression = "@v == 1";  
bp.Expression = "@v == 1"  

Applies to