LocalContentSuggestionSettings 建構函式

定義

建立 LocalContentSuggestionSettings 類別的新實例。

public:
 LocalContentSuggestionSettings();
 LocalContentSuggestionSettings();
public LocalContentSuggestionSettings();
function LocalContentSuggestionSettings()
Public Sub New ()

備註

重要

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

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

當您建立新的 LocalContentSuggestionSettings 物件時, Enabled 屬性預設為 true

適用於

另請參閱