AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

UWP SDK - Example code for creating a card appears to be incomplete

Open DhiMalo opened this issue 2 years ago • 0 comments

The code in the section "Create a Card from a JSON String" appears to be incomplete. Recommend correction:

image

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. image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

DhiMalo avatar Jan 09 '23 22:01 DhiMalo