Share via


Activity.AsCommandActivity Method

Definition

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

public Microsoft.Bot.Schema.ICommandActivity AsCommandActivity ();
member this.AsCommandActivity : unit -> Microsoft.Bot.Schema.ICommandActivity
Public Function AsCommandActivity () As ICommandActivity

Returns

This activity as a command activity; or null.

Applies to