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

RepresentationContract interface

作请求/响应表示形式详细信息。

属性

contentType

为此表示形式指定已注册或自定义内容类型,例如 application/xml。

examples

为表示形式定义的示例。

formParameters

表单参数的集合。 如果“contentType”值为“application/x-www-form-urlencoded”或“multipart/form-data”,则是必需的。

schemaId

架构标识符。 仅当“contentType”值既不是“application/x-www-form-urlencoded”也不是“multipart/form-data”时适用。

typeName

由架构定义的类型名称。 仅当“contentType”值既不是“application/x-www-form-urlencoded”也不是“multipart/form-data”时适用。

属性详细信息

contentType

为此表示形式指定已注册或自定义内容类型,例如 application/xml。

contentType: string

属性值

string

examples

为表示形式定义的示例。

examples?: {[propertyName: string]: ParameterExampleContract}

属性值

{[propertyName: string]: ParameterExampleContract}

formParameters

表单参数的集合。 如果“contentType”值为“application/x-www-form-urlencoded”或“multipart/form-data”,则是必需的。

formParameters?: ParameterContract[]

属性值

schemaId

架构标识符。 仅当“contentType”值既不是“application/x-www-form-urlencoded”也不是“multipart/form-data”时适用。

schemaId?: string

属性值

string

typeName

由架构定义的类型名称。 仅当“contentType”值既不是“application/x-www-form-urlencoded”也不是“multipart/form-data”时适用。

typeName?: string

属性值

string