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

ConnectionString Class

Key/value mappings for connection details. Uses the same syntax as dictionary

Initializer for ConnectionString

Constructor

ConnectionString(connection_string)

Parameters

Name Description
connection_string
Required
str

String with connection details provided by Azure

Methods

get

Return the value for key if key is in the dictionary, else default

get

Return the value for key if key is in the dictionary, else default

get(key, default=None)

Parameters

Name Description
key
Required
str

The key to retrieve a value for

default
str

The default value returned if a key is not found

Default value: None

Returns

Type Description

The value for the given key