EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

QueryOptions.SaveToString | saveToString method

Applies to Windows only

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

LoadFromString
QueryOptions

 

 

Mostrar:
© 2014 Microsoft