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.

The Amazon.DynamoDBv2.DocumentModel.KeyExpressionBuilder class is used to construct key expressions for DynamoDB operations.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.ExpressionBuilder
    Amazon.DynamoDBv2.DocumentModel.KeyExpressionBuilder

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

Syntax

C#
public class KeyExpressionBuilder : ExpressionBuilder
         IExpressionBuilder

The KeyExpressionBuilder 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(KeyExpressionBuilder, KeyExpressionBuilder, KeyExpressionBuilder[])

Combines multiple key expression conditions into a single composite key condition using the logical "AND" operator.

Public Method And(KeyExpressionBuilder, KeyExpressionBuilder[])

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 Equal(NameBuilder, ValueBuilder)

Creates a Amazon.DynamoDBv2.DocumentModel.KeyExpressionBuilder configured to represent an equality condition between a specified name and value.

Public Method Static Method New()

Creates a new instance of the Amazon.DynamoDBv2.DocumentModel.KeyExpressionBuilder class.

Public Method WithKey(string)

Adds a condition to the current key expression 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