UserActivityContentInfo.FromJson(String) 메서드

정의

JSON 문자열에서 UserActivityContentInfo 를 만듭니다.

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

매개 변수

value
String

Platform::String

winrt::hstring

JSON 형식으로 저장할 콘텐츠입니다.

반환

JSON 데이터를 포함하는 UserActivityContentInfo 입니다.

예제

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

적용 대상