Facet Class

Definition

A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. Please note this is the abstract base class. The derived classes available for instantiation are: FacetResult and FacetError.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.ResourceGraph.Models.UnknownFacet))]
public abstract class Facet : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ResourceGraph.Models.Facet>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ResourceGraph.Models.Facet>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.ResourceGraph.Models.UnknownFacet))>]
type Facet = class
    interface IJsonModel<Facet>
    interface IPersistableModel<Facet>
Public MustInherit Class Facet
Implements IJsonModel(Of Facet), IPersistableModel(Of Facet)
Inheritance
Facet
Derived
Attributes
Implements

Constructors

Name Description
Facet(String)

Initializes a new instance of Facet.

Properties

Name Description
Expression

Facet expression, same as in the corresponding facet request.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<Facet>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<Facet>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<Facet>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<Facet>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<Facet>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to