MessageActivityInput.WithRecipient(TeamsChannelAccount, Boolean) Method
Definition
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.
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.