AWS SDK Version 3 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.

Add a single item to get, identified by its hash-and-range primary key, using the specified expression to identify the attributes to retrieve.

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

Syntax

C#
public void AddKey(
         Primitive hashKey,
         Primitive rangeKey,
         Expression projectionExpression
)

Parameters

hashKey
Type: Amazon.DynamoDBv2.DocumentModel.Primitive

Hash key element of the item to get.

rangeKey
Type: Amazon.DynamoDBv2.DocumentModel.Primitive

Range key element of the item to get.

projectionExpression
Type: Amazon.DynamoDBv2.DocumentModel.Expression

An expression that identifies one or more attributes of the specified item to retrieve from the table.

Version Information

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

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5