Language

MessageActivityInput.WithRecipient(TeamsChannelAccount, Boolean) Method

Definition

Sets the recipient account for the activity and marks whether the recipient is targeted (for example, a targeted message visible only to that recipient).

public Microsoft.Teams.Apps.MessageActivityInput WithRecipient(Microsoft.Teams.Apps.Schema.TeamsChannelAccount account, bool isTargeted);
member this.WithRecipient : Microsoft.Teams.Apps.Schema.TeamsChannelAccount * bool -> Microsoft.Teams.Apps.MessageActivityInput
Public Function WithRecipient (account As TeamsChannelAccount, isTargeted As Boolean) As MessageActivityInput

Parameters

account
TeamsChannelAccount

The recipient account.

isTargeted
Boolean

Whether the recipient is targeted.

Returns

The activity instance for chaining.

Applies to