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
Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z
public class Primitive : DynamoDBEntry ICloneable, IEquatable<Primitive>
The Primitive type exposes the following members
Name | Description | |
---|---|---|
Primitive() |
Constructs an empty Primitive |
|
Primitive(string) |
Constructs a Primitive with the specified value. Value is stored as a string, not numeric. |
|
Primitive(string, bool) |
Constructs a Primitive with the specified value and specifies whether it should be stored as a number or not. |
|
Primitive(MemoryStream) |
Constructs a Binary Primitive with the specified MemoryStream value. Note: Primitive's Value is set to the stream's ToArray() response. |
|
Primitive(Byte[]) |
Constructs a Binary Primitive with the specified byte[] value. |
Name | Type | Description | |
---|---|---|---|
Type | Amazon.DynamoDBv2.DocumentModel.DynamoDBEntryType |
Type of this primitive object |
|
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. |
Name | Description | |
---|---|---|
AsArrayOfDynamoDBEntry() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsArrayOfPrimitive() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsArrayOfString() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsBoolean() |
Explicitly convert Primitive to Boolean |
|
AsByte() |
Explicitly convert Primitive to Byte |
|
AsByteArray() |
Explicitly convert Primitive to byte[] |
|
AsChar() |
Explicitly convert Primitive to Char |
|
AsDateTime() |
Explicitly convert Primitive to DateTime |
|
AsDateTimeUtc() |
Explicitly convert Primitive to DateTime in UTC |
|
AsDecimal() |
Explicitly convert Primitive to Decimal |
|
AsDocument() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsDouble() |
Explicitly convert Primitive to Double |
|
AsDynamoDBBool() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsDynamoDBList() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsDynamoDBNull() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsGuid() |
Explicitly convert Primitive to Guid |
|
AsHashSetOfByteArray() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsHashSetOfDynamoDBEntry() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsHashSetOfMemoryStream() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsHashSetOfPrimitive() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsHashSetOfString() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsInt() |
Explicitly convert Primitive to Int32 |
|
AsListOfByteArray() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsListOfDocument() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsListOfDynamoDBEntry() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsListOfMemoryStream() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsListOfPrimitive() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsListOfString() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsLong() |
Explicitly convert Primitive to Int64 |
|
AsMemoryStream() |
Explicitly convert Primitive to MemoryStream |
|
AsPrimitive() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsPrimitiveList() | Inherited from Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry. | |
AsSByte() |
Explicitly convert Primitive to SByte |
|
AsShort() |
Explicitly convert Primitive to Int16 |
|
AsSingle() |
Explicitly convert Primitive to Single |
|
AsString() |
Explicitly convert Primitive to String |
|
AsUInt() |
Explicitly convert Primitive to UInt32 |
|
AsULong() |
Explicitly convert Primitive to UInt64 |
|
AsUShort() |
Explicitly convert Primitive to UInt16 |
|
Clone() |
Implement the Clone method. |
.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