共用方式為


DebugSettings.BindingFailed 事件

定義

無法解析 系結 時發生。

public:
 virtual event BindingFailedEventHandler ^ BindingFailed;
// Register
event_token BindingFailed(BindingFailedEventHandler const& handler) const;

// Revoke with event_token
void BindingFailed(event_token const* cookie) const;

// Revoke with event_revoker
DebugSettings::BindingFailed_revoker BindingFailed(auto_revoke_t, BindingFailedEventHandler const& handler) const;
public event BindingFailedEventHandler BindingFailed;
function onBindingFailed(eventArgs) { /* Your code */ }
debugSettings.addEventListener("bindingfailed", onBindingFailed);
debugSettings.removeEventListener("bindingfailed", onBindingFailed);
- or -
debugSettings.onbindingfailed = onBindingFailed;
Public Custom Event BindingFailed As BindingFailedEventHandler 

事件類型

備註

IsBindingTracingEnabled 必須是 true ,而且必須附加至應用程式進程的偵錯工具,才能 BindingFailed 引發和追蹤才會出現在偵錯工具輸出中。 您不需要處理事件,即可查看追蹤出現在偵錯工具中。 偵錯工具輸出包含訊息資訊,會移至偵錯工具的 [ 輸出 ] 視窗。 當您 BindingFailed 想要查看原始訊息時,請自行附加處理常式是進階案例。

適用於

另請參閱