Partilhar via


UserActivityContentInfo.FromJson(String) Método

Definição

Cria um UserActivityContentInfo de uma cadeia de caracteres 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

O conteúdo a ser armazenado no formato JSON.

Retornos

Um UserActivityContentInfo que contém os dados JSON.

Exemplos

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

Aplica-se a