共用方式為


FacetResult Class

Definition

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

public class FacetResult : Azure.ResourceManager.ResourceGraph.Models.Facet
type FacetResult = class
    inherit Facet
Public Class FacetResult
Inherits Facet
Inheritance
FacetResult

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.

Applies to