共用方式為


SearchPaneSuggestionsRequest.IsCanceled 屬性

定義

指出是否取消顯示建議的要求。

public:
 property bool IsCanceled { bool get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
bool IsCanceled();
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
bool IsCanceled();
public bool IsCanceled { [Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))] get; }
public bool IsCanceled { [Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")] get; }
var boolean = searchPaneSuggestionsRequest.isCanceled;
Public ReadOnly Property IsCanceled As Boolean

屬性值

Boolean

bool

true 如果要求已取消,則為 ;否則為 false 。 預設值為 false

屬性

備註

重要

若要在應用程式中實作Windows 10或更新版本的搜尋,請使用AutoSuggestBox。 如需詳細資訊,請參閱 自動建議方塊

您不應該在 app 中使用Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或SearchBox API,以進行Windows 10或更新版本。

如果搜尋窗格建議仍然系結至最新的 建議requested 事件,則搜尋窗格建議的要求有效;也就是說,如果使用者尚未變更搜尋查詢。

適用於

另請參閱