你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DialogServiceConfig class
定义对话服务连接器的基本配置的类
属性
application |
设置相应的后端应用程序标识符。 |
Dialog |
|
speech |
返回配置的语言。 |
方法
get |
返回任意属性的当前值。 |
set |
设置任意属性。 |
set |
设置代理配置。 仅在Node.js环境中相关。 在版本 1.4.0 中添加。 |
set |
设置代理配置。 仅在Node.js环境中相关。 在版本 1.4.0 中添加。 |
set |
属性详细信息
applicationId
设置相应的后端应用程序标识符。
void applicationId
属性值
void
DialogTypes
static { BotFramework: string, CustomCommands: string } DialogTypes
属性值
{ BotFramework: string, CustomCommands: string }
speechRecognitionLanguage
返回配置的语言。
string speechRecognitionLanguage
属性值
string
方法详细信息
getProperty(string | PropertyId, string)
返回任意属性的当前值。
function getProperty(name: string | PropertyId, def?: string): string
参数
- name
-
string | PropertyId
要查询的属性的名称。
- def
-
string
属性未知时要返回的值。
返回
string
给定属性的当前值或提供的默认值。
setProperty(string | PropertyId, string)
设置任意属性。
function setProperty(name: string | PropertyId, value: string)
参数
- name
-
string | PropertyId
要设置的属性的名称。
- value
-
string
属性的新值。
setProxy(string, number)
设置代理配置。 仅在Node.js环境中相关。 在版本 1.4.0 中添加。
function setProxy(proxyHostName: string, proxyPort: number)
参数
- proxyHostName
-
string
代理服务器的主机名。
- proxyPort
-
number
代理服务器的端口号。
setProxy(string, number, string, string)
设置代理配置。 仅在Node.js环境中相关。 在版本 1.4.0 中添加。
function setProxy(proxyHostName: string, proxyPort: number, proxyUserName: string, proxyPassword: string)
参数
- proxyHostName
-
string
代理服务器的主机名,不带协议方案 (http://)
- proxyPort
-
number
- proxyUserName
-
string
代理服务器的用户名。
- proxyPassword
-
string
代理服务器的密码。
setServiceProperty(string, string, UriQueryParameter)
function setServiceProperty(name: string, value: string, channel: UriQueryParameter)
参数
- name
-
string
- value
-
string
- channel
- UriQueryParameter