AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class for building conditions used in DynamoDB expressions. Supports comparison, logical, and function-based conditions.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.ExpressionBuilder
    Amazon.DynamoDBv2.DocumentModel.ConditionExpressionBuilder

Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class ConditionExpressionBuilder : ExpressionBuilder
         IExpressionBuilder

The ConditionExpressionBuilder type exposes the following members

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method Static Method And(ConditionExpressionBuilder, ConditionExpressionBuilder, ConditionExpressionBuilder[])

Combines multiple conditions using the logical "AND" operator.

Public Method And(ConditionExpressionBuilder, ConditionExpressionBuilder[])

Combines the current condition with additional conditions using the logical "AND" operator.

Public Method Build() Inherited from Amazon.DynamoDBv2.DocumentModel.ExpressionBuilder.
Public Method Static Method New()

Creates a new instance of Amazon.DynamoDBv2.DocumentModel.ConditionExpressionBuilder.

Public Method Static Method Not(ConditionExpressionBuilder)

Negates a condition using the logical "NOT" operator.

Public Method Not()

Negates the current condition using the logical "NOT" operator.

Public Method Static Method Or(ConditionExpressionBuilder, ConditionExpressionBuilder, ConditionExpressionBuilder[])

Combines multiple conditions using the logical "OR" operator.

Public Method Or(ConditionExpressionBuilder, ConditionExpressionBuilder[])

Combines the current condition with additional conditions using the logical "OR" operator.

Public Method WithCondition(ConditionExpressionBuilder)

Adds a condition to the current condition builder.

Public Method WithName(string)

Adds an attribute name to the condition.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer