LocalContentSuggestionSettings.Enabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether suggestions based on local files are displayed in the search pane.
public:
property bool Enabled { bool get(); void set(bool value); };
bool Enabled();
void Enabled(bool value);
public bool Enabled { get; set; }
var boolean = localContentSuggestionSettings.enabled;
localContentSuggestionSettings.enabled = boolean;
Public Property Enabled As Boolean
Property Value
bool
true
if suggestions from local files are displayed; otherwise, false
. The default is false
.
Remarks
Important
To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.
You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract
) or SearchBox APIs in apps for Windows 10 or later.