new CloudTables.Condition()
This class is used to create conditions to apply to data being fetched. Please see the embedding conditions documentation for full details.
Creates a new condition instance which can be applied to a data access request, limiting the data that will be returned by the server.
new Condition()
new Condition(string id, string value)
string
- The id of the data point the condition should be applied to.string
- The value to use.dp-
for a regular data point. Conditions on computed values (c-
) and links (l-
) are not currently supported.id
option as it is easier to remember. However, while the id
is static, the name
can be changed in the application.=
, !=
, <
, <=
, >=
, >
.setValue
or value
if the former is not specified).Set
is enabled. Note that Value
will be used by default, and this method can override it with a new value to be set. It must be specified if Op
is not set to =
.SetValue
is specified. The formatting must follow these rules:
date
- ISO 8601 (date only)datetime
- ISO 8601number
- Unformatted numbertext
- Plain texttime
- ISO 8601 (time only).var api = new CloudTables.Api(":apiKey")
.Domain(":domainOrIp");
api.Condition(new Condition("dp-19", "Angela"));
var result = await api.Dataset(":id").Data();
// Results in only data being fetched where `dp-19` == `Angela`