Language

Activity.WithTargetedRecipient Method

Definition

Overloads

Name Description
WithTargetedRecipient(ChannelAccount)

Sets Recipient and marks the activity as visible only to that recipient.

WithTargetedRecipient(String)

Sets Recipient to a user account with the specified ID and marks the activity as visible only to that recipient.

WithTargetedRecipient(ChannelAccount)

Sets Recipient and marks the activity as visible only to that recipient.

public Microsoft.Agents.Core.Models.IActivity WithTargetedRecipient(Microsoft.Agents.Core.Models.ChannelAccount recipient);
abstract member WithTargetedRecipient : Microsoft.Agents.Core.Models.ChannelAccount -> Microsoft.Agents.Core.Models.IActivity
override this.WithTargetedRecipient : Microsoft.Agents.Core.Models.ChannelAccount -> Microsoft.Agents.Core.Models.IActivity
Public Function WithTargetedRecipient (recipient As ChannelAccount) As IActivity

Parameters

recipient
ChannelAccount

The account that should receive the targeted activity.

Returns

This activity.

Implements

Applies to

WithTargetedRecipient(String)

Sets Recipient to a user account with the specified ID and marks the activity as visible only to that recipient.

public Microsoft.Agents.Core.Models.IActivity WithTargetedRecipient(string id);
abstract member WithTargetedRecipient : string -> Microsoft.Agents.Core.Models.IActivity
override this.WithTargetedRecipient : string -> Microsoft.Agents.Core.Models.IActivity
Public Function WithTargetedRecipient (id As String) As IActivity

Parameters

id
String

The ID of the user account that should receive the targeted activity.

Returns

This activity.

Implements

Applies to