Activity. Try Parse From Json(String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public: static UserActivity ^ TryParseFromJson(Platform::String ^ json);
static UserActivity TryParseFromJson(winrt::hstring const& json);
public static UserActivity TryParseFromJson(string json);
Public Shared Function TryParseFromJson (json As String) As UserActivity
The JSON string that represents the UserActivity.
A UserActivity constructed from the JSON string.
Windows 10, version 1803 (introduced in 10.0.17134.0)
Windows.Foundation.UniversalApiContract (introduced in v6.0)
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 UserActivity 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 activity within the source application.