Sdílet prostřednictvím


FacetResult Class

Definition

Successfully executed facet containing additional statistics on the response of a query.

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

Properties

Count

Number of records returned in the facet response.

Data

A JObject array or Table containing the desired facets. Only present if the facet is valid.

To assign an object to 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" }.

Expression

Facet expression, same as in the corresponding facet request.

(Inherited from Facet)
TotalRecords

Number of total records in the facet results.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<Facet>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from Facet)
IJsonModel<Facet>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from Facet)
IJsonModel<FacetResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<FacetResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<Facet>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from Facet)
IPersistableModel<Facet>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from Facet)
IPersistableModel<Facet>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from Facet)
IPersistableModel<FacetResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<FacetResult>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<FacetResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to