Поделиться через


OperationResultError Class

Definition

Required if status == failed or status == canceled.

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

Properties

Code

Required if status == failed or status == cancelled. If status == failed, provide an invariant error code used for error troubleshooting, aggregation, and analysis.

Message

Required if status == failed. Localized. If status == failed, provide an actionable error message indicating what error occurred, and what the user can do to address the issue.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<OperationResultError>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<OperationResultError>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<OperationResultError>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OperationResultError>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<OperationResultError>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to