Activity.WithRecipient 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.
Overloads
| Name | Description |
|---|---|
| WithRecipient(ChannelAccount) |
Sets Recipient. |
| WithRecipient(String) |
Sets Recipient to a user account with the specified ID. |
WithRecipient(ChannelAccount)
Sets Recipient.
public Microsoft.Agents.Core.Models.IActivity WithRecipient(Microsoft.Agents.Core.Models.ChannelAccount recipient);
abstract member WithRecipient : Microsoft.Agents.Core.Models.ChannelAccount -> Microsoft.Agents.Core.Models.IActivity
override this.WithRecipient : Microsoft.Agents.Core.Models.ChannelAccount -> Microsoft.Agents.Core.Models.IActivity
Public Function WithRecipient (recipient As ChannelAccount) As IActivity
Parameters
- recipient
- ChannelAccount
The account that should receive the activity.
Returns
This activity.
Implements
Applies to
WithRecipient(String)
Sets Recipient to a user account with the specified ID.
public Microsoft.Agents.Core.Models.IActivity WithRecipient(string id);
abstract member WithRecipient : string -> Microsoft.Agents.Core.Models.IActivity
override this.WithRecipient : string -> Microsoft.Agents.Core.Models.IActivity
Public Function WithRecipient (id As String) As IActivity
Parameters
- id
- String
The ID of the user account that should receive the activity.
Returns
This activity.