Delen via


QueryOptions.SaveToString Method

Definition

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.

public:
 virtual Platform::String ^ SaveToString() = SaveToString;
winrt::hstring SaveToString();
public string SaveToString();
function saveToString()
Public Function SaveToString () As String

Returns

String

Platform::String

winrt::hstring

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.

Applies to

See also