ComputedPropertiesDefinition<T>.WithComputedProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>