语言

AdaptiveDialog.OnSetScopedServices(DialogContext) 方法

定义

OnSetScopedServices 提供为当前对话上下文设置作用域服务的能力。

protected virtual void OnSetScopedServices(Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext);
abstract member OnSetScopedServices : Microsoft.Bot.Builder.Dialogs.DialogContext -> unit
override this.OnSetScopedServices : Microsoft.Bot.Builder.Dialogs.DialogContext -> unit
Protected Overridable Sub OnSetScopedServices (dialogContext As DialogContext)

参数

dialogContext
DialogContext

对话 上下文。

注解

使用 dialogContext.Services.Set(object) 来设置一个带作用域的对象,该对象将被所有子 dialogContexts 继承。

适用于