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

SpellCheckClientConfiguration 类

SpellCheckClient 的配置 请注意,用于创建此实例的所有参数都保存为实例属性。

继承
msrest.configuration.Configuration
SpellCheckClientConfiguration

构造函数

SpellCheckClientConfiguration(endpoint, credentials)

参数

名称 说明
endpoint
必需
str

支持的认知服务终结点 (协议和主机名,例如:“https://westus.api.cognitive.microsoft.com”、“https://api.cognitive.microsoft.com”) 。

credentials
必需

唯一标识客户端订阅的订阅凭据。

方法

add_user_agent

使用空格向当前用户代理添加值。

load
save

将当前配置保存到文件。

add_user_agent

使用空格向当前用户代理添加值。

add_user_agent(value: str) -> None

参数

名称 说明
value
必需
str

要添加到用户代理的值。

load

load(filepath)

参数

名称 说明
filepath
必需

save

将当前配置保存到文件。

save(filepath)

参数

名称 说明
filepath
必需
str

将保存设置的文件路径。

例外

类型 说明
ValueError if supplied filepath cannot be written to.

属性

enable_http_logger

user_agent

当前用户代理值。