MentionEntity.FromJsonElement(JsonNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the MentionEntity class from the specified JSON node.
public static Microsoft.Teams.Apps.Schema.Entities.MentionEntity FromJsonElement(System.Text.Json.Nodes.JsonNode? jsonNode);
static member FromJsonElement : System.Text.Json.Nodes.JsonNode -> Microsoft.Teams.Apps.Schema.Entities.MentionEntity
Public Shared Function FromJsonElement (jsonNode As JsonNode) As MentionEntity
Parameters
- jsonNode
- JsonNode
A JsonNode containing the data to deserialize. Must include a 'mentioned' property representing a ChannelAccount.
Returns
A MentionEntity object populated with values from the provided JSON node.
Exceptions
Thrown if jsonNode is null or does not contain the required 'mentioned' property.