BreakpointTarget.Expression 屬性

定義

取得或設定要評估的運算式,以判斷中斷點是否應該發生。

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

屬性值

String

包含要評估之運算式的字串。

範例

下列程式碼範例示範如何設定中斷點運算式,以評估變數的值。

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

適用於