Megosztás a következőn keresztül:


RepresentationContract Class

Definition

Operation request/response representation details.

public class RepresentationContract : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ApiManagement.Models.RepresentationContract>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ApiManagement.Models.RepresentationContract>
type RepresentationContract = class
    interface IJsonModel<RepresentationContract>
    interface IPersistableModel<RepresentationContract>
Public Class RepresentationContract
Implements IJsonModel(Of RepresentationContract), IPersistableModel(Of RepresentationContract)
Inheritance
RepresentationContract
Implements

Constructors

RepresentationContract(String)

Initializes a new instance of RepresentationContract.

Properties

ContentType

Specifies a registered or custom content type for this representation, e.g. application/xml.

Examples

Exampled defined for the representation.

FormParameters

Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..

SchemaId

Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.

TypeName

Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.

Explicit Interface Implementations

IJsonModel<RepresentationContract>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RepresentationContract>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RepresentationContract>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RepresentationContract>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RepresentationContract>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to