This topic has not yet been rated - Rate this topic

SearchPane.SearchHistoryContext | searchHistoryContext property

A string that identifies the context of the search and is used to store the user's search history with the app.

Syntax


public:
property String^ SearchHistoryContext { 
   String^ get();
   void set (String^ value);
}

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The search history context string.

Remarks

The search history context string is used as a secondary key for storing search history. (The primary key is the AppId.) An app can use the search history context string to store different search histories based on the context of the application.

If you don't set this property, Windows assumes that all searches in your app occur in the same context. If you update this property while the search pane is open with suggestions showing, the changes won't take effect until the user enters the next character.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.ApplicationModel.Search
Windows::ApplicationModel::Search [C++]

Metadata

Windows.winmd

See also

SearchPane class
SearchPane.SearchHistoryEnabled property

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.