Skip to content

Commit e5daabd

Browse files
Merge pull request #2522 from MicrosoftDocs/copilot/fix-tryparse-signature
Fix C++/WinRT signatures for TryParse methods in JsonArray, JsonObject, and JsonValue
2 parents d993f18 + eac3ea4 commit e5daabd

3 files changed

Lines changed: 78 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Type Name="JsonArray" FullName="Windows.Data.Json.JsonArray">
3+
<Members>
4+
<Member MemberName="TryParse">
5+
<MemberSignature Language="C#" Value="public static bool TryParse (string input, out Windows.Data.Json.JsonArray result);" />
6+
<MemberSignature Language="C++/WinRT" Value="static bool TryParse(winrt::hstring const&amp; input, JsonArray&amp; result);" />
7+
<MemberType>Method</MemberType>
8+
<AssemblyInfo>
9+
<AssemblyName>Windows.Data.Json</AssemblyName>
10+
</AssemblyInfo>
11+
<ReturnValue>
12+
<ReturnType>System.Boolean</ReturnType>
13+
</ReturnValue>
14+
<Parameters>
15+
<Parameter Name="input" Type="System.String" />
16+
<Parameter Name="result" Type="Windows.Data.Json.JsonArray" RefType="out" />
17+
</Parameters>
18+
<Docs>
19+
<param name="input">The specified string.</param>
20+
<param name="result">The new JsonArray object.</param>
21+
<summary>Parses the provided string into a JsonArray.</summary>
22+
<returns>True if the JsonArray object was successfully created; otherwise, false.</returns>
23+
</Docs>
24+
</Member>
25+
</Members>
26+
</Type>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Type Name="JsonObject" FullName="Windows.Data.Json.JsonObject">
3+
<Members>
4+
<Member MemberName="TryParse">
5+
<MemberSignature Language="C#" Value="public static bool TryParse (string input, out Windows.Data.Json.JsonObject result);" />
6+
<MemberSignature Language="C++/WinRT" Value="static bool TryParse(winrt::hstring const&amp; input, JsonObject&amp; result);" />
7+
<MemberType>Method</MemberType>
8+
<AssemblyInfo>
9+
<AssemblyName>Windows.Data.Json</AssemblyName>
10+
</AssemblyInfo>
11+
<ReturnValue>
12+
<ReturnType>System.Boolean</ReturnType>
13+
</ReturnValue>
14+
<Parameters>
15+
<Parameter Name="input" Type="System.String" />
16+
<Parameter Name="result" Type="Windows.Data.Json.JsonObject" RefType="out" />
17+
</Parameters>
18+
<Docs>
19+
<param name="input">The specified JSON string.</param>
20+
<param name="result">The resultant JsonObject.</param>
21+
<summary>Parses the specified string that represents a JSON object into a JsonObject.</summary>
22+
<returns>True if the JsonObject object was successfully created; otherwise, false.</returns>
23+
</Docs>
24+
</Member>
25+
</Members>
26+
</Type>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Type Name="JsonValue" FullName="Windows.Data.Json.JsonValue">
3+
<Members>
4+
<Member MemberName="TryParse">
5+
<MemberSignature Language="C#" Value="public static bool TryParse (string input, out Windows.Data.Json.JsonValue result);" />
6+
<MemberSignature Language="C++/WinRT" Value="static bool TryParse(winrt::hstring const&amp; input, JsonValue&amp; result);" />
7+
<MemberType>Method</MemberType>
8+
<AssemblyInfo>
9+
<AssemblyName>Windows.Data.Json</AssemblyName>
10+
</AssemblyInfo>
11+
<ReturnValue>
12+
<ReturnType>System.Boolean</ReturnType>
13+
</ReturnValue>
14+
<Parameters>
15+
<Parameter Name="input" Type="System.String" />
16+
<Parameter Name="result" Type="Windows.Data.Json.JsonValue" RefType="out" />
17+
</Parameters>
18+
<Docs>
19+
<param name="input">The specified string.</param>
20+
<param name="result">The new JsonValue object.</param>
21+
<summary>Parses the specified string into a JsonValue.</summary>
22+
<returns>True if the JsonValue object was successfully created; otherwise, false.</returns>
23+
</Docs>
24+
</Member>
25+
</Members>
26+
</Type>

0 commit comments

Comments
 (0)