共用方式為


DebugSettings.IsBindingTracingEnabled 屬性

定義

取得或設定值,這個值表示應用程式執行時是否要與 Microsoft Visual Studio 的系結追蹤功能互動。 發生參與和系結錯誤時,會引發 事件, BindingFailed 並在原生偵錯輸出中記錄錯誤資訊。

public:
 property bool IsBindingTracingEnabled { bool get(); void set(bool value); };
bool IsBindingTracingEnabled();

void IsBindingTracingEnabled(bool value);
public bool IsBindingTracingEnabled { get; set; }
var boolean = debugSettings.isBindingTracingEnabled;
debugSettings.isBindingTracingEnabled = boolean;
Public Property IsBindingTracingEnabled As Boolean

屬性值

Boolean

bool

true 參與 Microsoft Visual Studio 的系結追蹤功能;否則為 false 。 預設值為 true

備註

此屬性預設為 true ,但若要讓系結追蹤正常運作,您也必須在專案設計工具的 [錯] 頁面上選取 [Microsoft Visual Studio 中的混合偵錯工具類型]。

當啟用系結追蹤,且您使用附加偵錯工具執行應用程式時,Microsoft Visual Studio 的 [ 輸出 ] 視窗中會出現任何系結錯誤,並引發 BindingFailed 事件。

適用於

另請參閱