ComputedProperty Class

Definition

The definition of a computed property.

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

Constructors

ComputedProperty()

Initializes a new instance of ComputedProperty.

Properties

Name

The name of a computed property, for example - "cp_lowerName".

Query

The query that evaluates the value for computed property, for example - "SELECT VALUE LOWER(c.name) FROM c".

Explicit Interface Implementations

IJsonModel<ComputedProperty>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ComputedProperty>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputedProperty>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ComputedProperty>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ComputedProperty>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to