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

DictionaryMapper interface

描述用作键/值对的普通 JavaScript 对象的映射器。

Extends

属性

headerCollectionPrefix

(可选)要添加到标头集合的前缀。

type

的类型描述符 DictionaryMapper

继承属性

constraints

用于测试当前值的约束

defaultValue

未显式提供时默认值

isConstant

当前属性是否为常量

nullable

当前属性是否允许将 mull 作为值

readOnly

当前属性是否为只读

required

是否需要当前属性

serializedName

序列化时要使用的名称

xmlElementName

序列化数组时 xml 元素的名称

xmlIsAttribute

确定是否应将当前属性序列化为父 xml 元素的属性

xmlIsMsText

确定是否应将当前属性序列化为 xml 元素的内部内容

xmlIsWrapped

当前属性是否应具有包装 XML 元素

xmlName

xml 元素的名称

xmlNamespace

Xml 元素命名空间

xmlNamespacePrefix

Xml 元素命名空间前缀

属性详细信息

headerCollectionPrefix

(可选)要添加到标头集合的前缀。

headerCollectionPrefix?: string

属性值

string

type

的类型描述符 DictionaryMapper

type: DictionaryMapperType

属性值

继承属性详细信息

constraints

用于测试当前值的约束

constraints?: MapperConstraints

属性值

继承自BaseMapper.constraints

defaultValue

未显式提供时默认值

defaultValue?: any

属性值

any

继承自BaseMapper.defaultValue

isConstant

当前属性是否为常量

isConstant?: boolean

属性值

boolean

继承自BaseMapper.isConstant

nullable

当前属性是否允许将 mull 作为值

nullable?: boolean

属性值

boolean

继承自BaseMapper.nullable

readOnly

当前属性是否为只读

readOnly?: boolean

属性值

boolean

继承自BaseMapper.readOnly

required

是否需要当前属性

required?: boolean

属性值

boolean

继承自BaseMapper.required

serializedName

序列化时要使用的名称

serializedName?: string

属性值

string

继承自BaseMapper.serializedName

xmlElementName

序列化数组时 xml 元素的名称

xmlElementName?: string

属性值

string

继承自BaseMapper.xmlElementName

xmlIsAttribute

确定是否应将当前属性序列化为父 xml 元素的属性

xmlIsAttribute?: boolean

属性值

boolean

继承自BaseMapper.xmlIsAttribute

xmlIsMsText

确定是否应将当前属性序列化为 xml 元素的内部内容

xmlIsMsText?: boolean

属性值

boolean

继承自BaseMapper.xmlIsMsText

xmlIsWrapped

当前属性是否应具有包装 XML 元素

xmlIsWrapped?: boolean

属性值

boolean

继承自BaseMapper.xmlIsWrapped

xmlName

xml 元素的名称

xmlName?: string

属性值

string

继承自BaseMapper.xmlName

xmlNamespace

Xml 元素命名空间

xmlNamespace?: string

属性值

string

继承自BaseMapper.xmlNamespace

xmlNamespacePrefix

Xml 元素命名空间前缀

xmlNamespacePrefix?: string

属性值

string

继承自BaseMapper.xmlNamespacePrefix