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.

A DynamoDBEntry that represents a scalar DynamoDB type

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry
    Amazon.DynamoDBv2.DocumentModel.Primitive

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

Syntax

C#
public class Primitive : DynamoDBEntry
         ICloneable, IEquatable<Primitive>

The Primitive type exposes the following members

Constructors

NameDescription
Public Method Primitive()

Constructs an empty Primitive

Public Method Primitive(string)

Constructs a Primitive with the specified value. Value is stored as a string, not numeric.

Public Method Primitive(string, bool)

Constructs a Primitive with the specified value and specifies whether it should be stored as a number or not.

Public Method Primitive(MemoryStream)

Constructs a Binary Primitive with the specified MemoryStream value. Note: Primitive's Value is set to the stream's ToArray() response.

Public Method Primitive(Byte[])

Constructs a Binary Primitive with the specified byte[] value.

Properties

NameTypeDescription
Public Property Type Amazon.DynamoDBv2.DocumentModel.DynamoDBEntryType

Type of this primitive object

Public Property Value System.Object

Value of the Primitive. If Type is String or Numeric, this property is a string. If Type is Binary, this property is a byte array.

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 AsArrayOfDynamoDBEntry() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsArrayOfPrimitive() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsArrayOfString() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsBoolean()

Explicitly convert Primitive to Boolean

Public Method AsByte()

Explicitly convert Primitive to Byte

Public Method AsByteArray()

Explicitly convert Primitive to byte[]

Public Method AsChar()

Explicitly convert Primitive to Char

Public Method AsDateTime()

Explicitly convert Primitive to DateTime

Public Method AsDecimal()

Explicitly convert Primitive to Decimal

Public Method AsDocument() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsDouble()

Explicitly convert Primitive to Double

Public Method AsDynamoDBBool() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsDynamoDBList() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsDynamoDBNull() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsGuid()

Explicitly convert Primitive to Guid

Public Method AsHashSetOfByteArray() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsHashSetOfDynamoDBEntry() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsHashSetOfMemoryStream() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsHashSetOfPrimitive() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsHashSetOfString() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsInt()

Explicitly convert Primitive to Int32

Public Method AsListOfByteArray() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsListOfDocument() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsListOfDynamoDBEntry() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsListOfMemoryStream() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsListOfPrimitive() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsListOfString() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsLong()

Explicitly convert Primitive to Int64

Public Method AsMemoryStream()

Explicitly convert Primitive to MemoryStream

Public Method AsPrimitive() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsPrimitiveList() Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry.
Public Method AsSByte()

Explicitly convert Primitive to SByte

Public Method AsShort()

Explicitly convert Primitive to Int16

Public Method AsSingle()

Explicitly convert Primitive to Single

Public Method AsString()

Explicitly convert Primitive to String

Public Method AsUInt()

Explicitly convert Primitive to UInt32

Public Method AsULong()

Explicitly convert Primitive to UInt64

Public Method AsUShort()

Explicitly convert Primitive to UInt16

Public Method Clone()

Implement the Clone method.

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