Share via


Computation Constructors

Definition

Overloads

Computation()

Initializes a new instance of the Computation class.

Computation(String, String, String, String, IList<Query>)

Initializes a new instance of the Computation class.

Computation()

Initializes a new instance of the Computation class.

public Computation ();
Public Sub New ()

Applies to

Computation(String, String, String, String, IList<Query>)

Initializes a new instance of the Computation class.

public Computation (string expression, string value, string id = default, string webSearchUrl = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Query> followUpQueries = default);
new Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Computation : string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Query> -> Microsoft.Azure.CognitiveServices.Search.WebSearch.Models.Computation
Public Sub New (expression As String, value As String, Optional id As String = Nothing, Optional webSearchUrl As String = Nothing, Optional followUpQueries As IList(Of Query) = Nothing)

Parameters

expression
String

The math or conversion expression. If the query contains a request to convert units of measure (for example, meters to feet), this field contains the from units and value contains the to units. If the query contains a mathematical expression such as 2+2, this field contains the expression and value contains the answer. Note that mathematical expressions may be normalized. For example, if the query was sqrt(4^2+8^2), the normalized expression may be sqrt((4^2)+(8^2)). If the user's query is a math question and the textDecorations query parameter is set to true, the expression string may include formatting markers. For example, if the user's query is log(2), the normalized expression includes the subscript markers. For more information, see Hit Highlighting.

value
String

The expression's answer.

id
String

A String identifier.

webSearchUrl
String

The URL To Bing's search result for this item.

followUpQueries
IList<Query>

Applies to