Windows Dev Center

QueryOptions.SaveToString | saveToString method

Converts the values of a QueryOptions object to a string that can be used to initialize the values of a QueryOptions object by calling LoadFromString.

Syntax


var string = queryOptions.saveToString();

Parameters

This method has no parameters.

Return value

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

A string representing the serialized settings of a QueryOptions instance.

Remarks

Use this method if you want to save the query options for later use. For example if you generate query options dynamically based on user input and you want to preserve these options when your app is suspended. In this case, you should also use the FutureAccessList to persist access to the folder(s) where the query was created. to learn more about persisting access to files and folders see How to track recently used files and folders.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows 10 Mobile

Namespace

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

Metadata

Windows.winmd

See also

LoadFromString
QueryOptions

 

 

Show:
© 2015 Microsoft