Share via


Activity.AsMessageActivity Method

Definition

Returns this activity as an IMessageActivity object; or null, if this is not that type of activity.

public Microsoft.Bot.Schema.IMessageActivity AsMessageActivity ();
abstract member AsMessageActivity : unit -> Microsoft.Bot.Schema.IMessageActivity
override this.AsMessageActivity : unit -> Microsoft.Bot.Schema.IMessageActivity
Public Function AsMessageActivity () As IMessageActivity

Returns

This activity as a message activity; or null.

Implements

Applies to