Sdílet prostřednictvím


FacetErrorDetails Class

Definition

Error details.

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

Properties

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Code

Error code identifying the specific error.

Message

A human readable error message.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<FacetErrorDetails>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<FacetErrorDetails>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<FacetErrorDetails>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<FacetErrorDetails>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<FacetErrorDetails>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to