Table of Contents

Class ComputedProperty

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

Represents a computed property definition in a Cosmos DB collection.

public sealed class ComputedProperty
Inheritance
ComputedProperty
Inherited Members
Extension Methods

Constructors

ComputedProperty()

public ComputedProperty()

Properties

Name

Gets or sets the name of the computed property.

public string Name { get; set; }

Property Value

string

The name of the computed property.

Remarks

Name of the computed property should be chosen such that it does not collide with any existing or future document properties.

Query

Gets or sets the query for the computed property.

public string Query { get; set; }

Property Value

string

The query used to evaluate the value for the computed property.

Remarks

For example: SELECT VALUE LOWER(c.firstName) FROM c