AdaptiveCards
AdaptiveCards copied to clipboard
UWP SDK - Example code for creating a card appears to be incomplete
The code in the section "Create a Card from a JSON String" appears to be incomplete. Recommend correction:
Q: What is wrong with the existing code? A: It is missing a property retrieval.
Detail: The result of the method call .FromJsonString is an AdaptiveCardParseResult. This result has a member property called Adaptive Card. The card variable in the example code must be set to this property, not directly to the AdaptiveCardParseResult.
Q: What's the impact of the existing example code?
A: The compiler throws an error, as shown in the screenshot below.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: a4a5b6be-4523-20e7-a020-6119c08b3b3a
- Version Independent ID: b11e36a7-c2c9-d06e-ae49-2f20de2b8c25
- Content: Render a card - UWP SDK - Adaptive Cards
- Content Source: AdaptiveCards/sdk/rendering-cards/uwp/render-a-card.md
- Product: adaptive-cards
- GitHub Login: @matthidinger
- Microsoft Alias: mahiding