Condividi tramite


ComputedPropertiesDefinition<T>.WithComputedProperty Method

Definition

Adds a computed property to the current ComputedPropertiesDefinition<T>

public Microsoft.Azure.Cosmos.Fluent.ComputedPropertiesDefinition<T> WithComputedProperty(string name, string query);
member this.WithComputedProperty : string * string -> Microsoft.Azure.Cosmos.Fluent.ComputedPropertiesDefinition<'T>
Public Function WithComputedProperty (name As String, query As String) As ComputedPropertiesDefinition(Of T)

Parameters

name
String

Name of the computed property

query
String

Query for the computed property values

Returns

An instance of the current ComputedPropertiesDefinition<T>

Applies to