Share via


SearchBox.SearchHistoryContext 속성

정의

검색 컨텍스트를 식별하고 앱과 함께 사용자의 검색 기록을 저장하는 데 사용되는 문자열을 가져오거나 설정합니다.

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

void SearchHistoryContext(winrt::hstring value);
public string SearchHistoryContext { get; set; }
var string = searchBox.searchHistoryContext;
searchBox.searchHistoryContext = string;
Public Property SearchHistoryContext As String
<SearchBox SearchHistoryContext="string"/>

속성 값

String

Platform::String

winrt::hstring

검색 컨텍스트를 식별하는 문자열입니다. 기본값은 빈 문자열("")입니다.

설명

검색 기록 컨텍스트 문자열은 검색 기록을 저장하기 위한 보조 키로 사용됩니다. 기본 키는 AppId입니다. 검색 기록 컨텍스트 문자열을 사용하여 앱에서 다른 페이지 또는 검색 진입점에 대한 다양한 검색 기록을 저장할 수 있습니다. 이 속성을 설정하지 않으면 Windows는 앱의 모든 검색이 동일한 컨텍스트에서 발생한다고 가정합니다.

적용 대상