ActivityExtensions.MentionsRecipient(IMessageActivity) 方法

定义

Text 属性中是否有提及 Recipient.Id。

public static bool MentionsRecipient (this Microsoft.Bot.Schema.IMessageActivity activity);
static member MentionsRecipient : Microsoft.Bot.Schema.IMessageActivity -> bool
<Extension()>
Public Function MentionsRecipient (activity As IMessageActivity) As Boolean

参数

activity
IMessageActivity

cmdlet。

返回

如果文本中提到此 ID,则为 true。

适用于