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.

Expected state of an item in DynamoDB.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.ExpectedState

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

Syntax

C#
public class ExpectedState

The ExpectedState type exposes the following members

Constructors

NameDescription
Public Method ExpectedState()

Constructs an empty ExpectedState with ConditionalOeprator set to AND.

Properties

NameTypeDescription
Public Property ConditionalOperator Amazon.DynamoDBv2.DocumentModel.ConditionalOperatorValues

Operator dictating whether ALL or SOME of the expected values must be true to satisfy the overall expected state.

Public Property ExpectedValues System.Collections.Generic.Dictionary<System.String, Amazon.DynamoDBv2.DocumentModel.ExpectedValue>

Attribute name to ExpectedValue mapping. Represents the expected state of a number of attributes of a DynamoDB item.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AddExpected(string, bool)

Adds an ExpectedValue with the specific Exists value for the attribute.

Public Method AddExpected(string, ScanOperator, Primitive[])

Adds an ExpectedValue with the specific Comparison and Values for the attribute.

Public Method ToExpectedAttributeMap()

Creates a map of attribute names mapped to ExpectedAttributeValue objects. This call will use the conversion specified by AWSConfigs.DynamoDBConfig.ConversionSchema

Public Method ToExpectedAttributeMap(DynamoDBEntryConversion)

Creates a map of attribute names mapped to ExpectedAttributeValue objects.

Public Method ToExpectedAttributeMap(Table)

Creates a map of attribute names mapped to ExpectedAttributeValue objects. This call will use the conversion specified in the table.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone