Condividi tramite


UserActivityContentInfo.FromJson(String) Metodo

Definizione

Crea un oggetto UserActivityContentInfo da una stringa 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

Parametri

value
String

Platform::String

winrt::hstring

Contenuto da archiviare in formato JSON.

Restituisce

UserActivityContentInfo contenente i dati JSON.

Esempio

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

Si applica a