AutoSuggestBox.QuerySubmitted 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于使用者提交搜尋查詢時。
// Register
event_token QuerySubmitted(TypedEventHandler<AutoSuggestBox, AutoSuggestBoxQuerySubmittedEventArgs const&> const& handler) const;
// Revoke with event_token
void QuerySubmitted(event_token const* cookie) const;
// Revoke with event_revoker
AutoSuggestBox::QuerySubmitted_revoker QuerySubmitted(auto_revoke_t, TypedEventHandler<AutoSuggestBox, AutoSuggestBoxQuerySubmittedEventArgs const&> const& handler) const;
public event TypedEventHandler<AutoSuggestBox,AutoSuggestBoxQuerySubmittedEventArgs> QuerySubmitted;
function onQuerySubmitted(eventArgs) { /* Your code */ }
autoSuggestBox.addEventListener("querysubmitted", onQuerySubmitted);
autoSuggestBox.removeEventListener("querysubmitted", onQuerySubmitted);
- or -
autoSuggestBox.onquerysubmitted = onQuerySubmitted;
Public Custom Event QuerySubmitted As TypedEventHandler(Of AutoSuggestBox, AutoSuggestBoxQuerySubmittedEventArgs)
<AutoSuggestBox QuerySubmitted="eventhandler"/>
事件類型
備註
請參閱 AutoSuggestBoxQuerySubmittedEventArgs。