Language

MentionEntity.FromJsonElement(JsonNode) Method

Definition

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.

Applies to