Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Activity.GetMentions Method

Definition

Namespace:
Microsoft.Bot.Schema
Assembly:
Microsoft.Bot.Schema.dll
Package:
Microsoft.Bot.Schema v4.22.7

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.

Resolves the mentions from the entities of this activity.

public Microsoft.Bot.Schema.Mention[] GetMentions();
abstract member GetMentions : unit -> Microsoft.Bot.Schema.Mention[]
override this.GetMentions : unit -> Microsoft.Bot.Schema.Mention[]
Public Function GetMentions () As Mention()

Returns

The array of mentions; or an empty array, if none are found.

Implements

Remarks

This method is defined on the Activity class, but is only intended for use with a message activity, where the activity Type is set to Message.

Applies to

See also