UserActivity.TryParseFromJsonArray(String) Method

Definition

Creates a collection of UserActivity objects from a JSON string.

public:
 static IVector<UserActivity ^> ^ TryParseFromJsonArray(Platform::String ^ json);
 static IVector<UserActivity> TryParseFromJsonArray(winrt::hstring const& json);
public static IList<UserActivity> TryParseFromJsonArray(string json);
function tryParseFromJsonArray(json)
Public Shared Function TryParseFromJsonArray (json As String) As IList(Of UserActivity)

Parameters

json
String

Platform::String

winrt::hstring

The JSON string that represents a collection of UserActivity objects.

Returns

A collection of UserActivity objects.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

The UserActivity APIs allow an application to provide rich information for Cortana Pick-up Where I Left Off and the Timeline. A better re-engagement UI can be built within the consuming application if the source application can provide more details about the re-engagement. This method creates a collection of UserActivity objects from information stored in a JSON string that a source application provided so that the consuming application can get information about the source application, and the specific activities within the source application.

Applies to

See also