Compartir a través de


UserActivityContentInfo.FromJson(String) Método

Definición

Crea un UserActivityContentInfo a partir de una cadena JSON.

public:
 static UserActivityContentInfo ^ FromJson(Platform::String ^ value);
 static UserActivityContentInfo FromJson(winrt::hstring const& value);
public static UserActivityContentInfo FromJson(string value);
function fromJson(value)
Public Shared Function FromJson (value As String) As UserActivityContentInfo

Parámetros

value
String

Platform::String

winrt::hstring

Contenido que se va a almacenar en formato JSON.

Devoluciones

UserActivityContentInfo que contiene los datos JSON.

Ejemplos

userActivity.ContentInfo = UserActivityContentInfo.FromJson(
    @"{
    ""@context"": ""~~http~~://schema.org"",
    ""@type"": ""Article"",
    ""author"": ""John Doe"",
    ""name"": ""How to Tie a Reef Knot""
    }");

Se aplica a