Extensions.ToConversationReference 方法

定义

重载

ToConversationReference(IAddress)

ConversationReferenceIAddress创建 。

ToConversationReference(ResumptionCookie)

ConversationReferenceResumptionCookie创建 。

ToConversationReference(IActivity)

ConversationReferenceIActivity创建 。

ToConversationReference(IAddress)

Source:
ResumptionContext.cs
public static Microsoft.Bot.Connector.ConversationReference ToConversationReference (this Microsoft.Bot.Builder.Dialogs.IAddress address);
static member ToConversationReference : Microsoft.Bot.Builder.Dialogs.IAddress -> Microsoft.Bot.Connector.ConversationReference
<Extension()>
Public Function ToConversationReference (address As IAddress) As ConversationReference

参数

address
IAddress

地址。

返回

ConversationReference

适用于

ToConversationReference(ResumptionCookie)

Source:
ResumptionContext.cs
public static Microsoft.Bot.Connector.ConversationReference ToConversationReference (this Microsoft.Bot.Builder.Dialogs.ResumptionCookie resumptionCookie);
static member ToConversationReference : Microsoft.Bot.Builder.Dialogs.ResumptionCookie -> Microsoft.Bot.Connector.ConversationReference
<Extension()>
Public Function ToConversationReference (resumptionCookie As ResumptionCookie) As ConversationReference

参数

resumptionCookie
ResumptionCookie

恢复 Cookie。

返回

ConversationReference

适用于

ToConversationReference(IActivity)

Source:
ResumptionContext.cs
public static Microsoft.Bot.Connector.ConversationReference ToConversationReference (this Microsoft.Bot.Connector.IActivity activity);
static member ToConversationReference : Microsoft.Bot.Connector.IActivity -> Microsoft.Bot.Connector.ConversationReference
<Extension()>
Public Function ToConversationReference (activity As IActivity) As ConversationReference

参数

activity
IActivity

IActivity发布到机器人的 。

返回

ConversationReference

适用于