你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatModelFactory.ChatMessageContent 方法

定义

public static Azure.Communication.Chat.ChatMessageContent ChatMessageContent (string message, string topic, Azure.Communication.CommunicationUserIdentifier communicationUserIdentifier, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatParticipant> participants);
static member ChatMessageContent : string * string * Azure.Communication.CommunicationUserIdentifier * seq<Azure.Communication.Chat.ChatParticipant> -> Azure.Communication.Chat.ChatMessageContent
Public Shared Function ChatMessageContent (message As String, topic As String, communicationUserIdentifier As CommunicationUserIdentifier, participants As IEnumerable(Of ChatParticipant)) As ChatMessageContent

参数

message
String

聊天消息。

topic
String

消息内容的主题。

communicationUserIdentifier
CommunicationUserIdentifier

通信用户标识符。

participants
IEnumerable<ChatParticipant>

聊天参与者列表

返回

用于模拟的新 ChatMessageContent(String, String, CommunicationUserIdentifier, IEnumerable<ChatParticipant>) 实例。

适用于