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.
Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.dll
Version: 0.0.3.0
public class Document : DynamoDBEntry ICloneable, ICollection<KeyValuePair<String, DynamoDBEntry>>, IDictionary<String, DynamoDBEntry>, IEnumerable, IEnumerable<KeyValuePair<String, DynamoDBEntry>>
The Document type exposes the following members
Name | Description | |
---|---|---|
![]() |
Document() | Constructs an empty Document. |
![]() |
Document(Dictionary`2) |
Name | Description | |
---|---|---|
![]() |
Count | |
![]() |
IsReadOnly | |
![]() |
Item | |
![]() |
Keys | |
![]() |
Values |
Name | Description | |
---|---|---|
![]() |
Add(string, DynamoDBEntry) | |
![]() |
Add(KeyValuePair`2) | |
![]() |
AsArrayOfDynamoDBEntry() | Explicitly convert DynamoDBEntry to DynamoDBEntry[] |
![]() |
AsArrayOfPrimitive() | Explicitly convert DynamoDBEntry to Primitive[] |
![]() |
AsArrayOfString() | Explicitly convert DynamoDBEntry to String[] |
![]() |
AsBoolean() | Explicitly convert DynamoDBEntry to Boolean |
![]() |
AsByte() | Explicitly convert DynamoDBEntry to Byte |
![]() |
AsByteArray() | Explicitly convert DynamoDBEntry to byte[] |
![]() |
AsChar() | Explicitly convert DynamoDBEntry to Char |
![]() |
AsDateTime() | Explicitly convert DynamoDBEntry to DateTime |
![]() |
AsDecimal() | Explicitly convert DynamoDBEntry to Decimal |
![]() |
AsDocument() | Convert DynamoDBEntry to Document |
![]() |
AsDouble() | Explicitly convert DynamoDBEntry to Double |
![]() |
AsDynamoDBBool() | Convert DynamoDBEntry to DynamoDBBool |
![]() |
AsDynamoDBList() | Convert DynamoDBEntry to DynamoDBList |
![]() |
AsDynamoDBNull() | Convert DynamoDBEntry to DynamoDBNull |
![]() |
AsGuid() | Explicitly convert DynamoDBEntry to Guid |
![]() |
AsHashSetOfByteArray() | Explicitly convert DynamoDBEntry to HashSet<byte[]> |
![]() |
AsHashSetOfDynamoDBEntry() | Explicitly convert DynamoDBEntry to HashSet<DynamoDBEntry> |
![]() |
AsHashSetOfMemoryStream() | Explicitly convert DynamoDBEntry to HashSet<MemoryStream> |
![]() |
AsHashSetOfPrimitive() | Explicitly convert DynamoDBEntry to HashSet<Primitive> |
![]() |
AsHashSetOfString() | Explicitly convert DynamoDBEntry to HashSet<String> |
![]() |
AsInt() | Explicitly convert DynamoDBEntry to Int32 |
![]() |
AsListOfByteArray() | Explicitly convert DynamoDBEntry to List<byte[]> |
![]() |
AsListOfDocument() | Explicitly convert DynamoDBEntry to List<Document> |
![]() |
AsListOfDynamoDBEntry() | Explicitly convert DynamoDBEntry to List<DynamoDBEntry> |
![]() |
AsListOfMemoryStream() | Explicitly convert DynamoDBEntry to List<MemoryStream> |
![]() |
AsListOfPrimitive() | Explicitly convert DynamoDBEntry to List<Primitive> |
![]() |
AsListOfString() | Explicitly convert DynamoDBEntry to List<String> |
![]() |
AsLong() | Explicitly convert DynamoDBEntry to Int64 |
![]() |
AsMemoryStream() | Explicitly convert DynamoDBEntry to MemoryStream |
![]() |
AsPrimitive() | Convert DynamoDBEntry to Primitive |
![]() |
AsPrimitiveList() | Convert DynamoDBEntry to PrimitiveList |
![]() |
AsSByte() | Explicitly convert DynamoDBEntry to SByte |
![]() |
AsShort() | Explicitly convert DynamoDBEntry to Int16 |
![]() |
AsSingle() | Explicitly convert DynamoDBEntry to Single |
![]() |
AsString() | Explicitly convert DynamoDBEntry to String |
![]() |
AsUInt() | Explicitly convert DynamoDBEntry to UInt32 |
![]() |
AsULong() | Explicitly convert DynamoDBEntry to UInt64 |
![]() |
AsUShort() | Explicitly convert DynamoDBEntry to UInt16 |
![]() |
Clear() | |
![]() |
Clone() | |
![]() |
Contains(string) | Determines if a specific attribute is set on the Document. |
![]() |
Contains(KeyValuePair`2) | |
![]() |
ContainsKey(string) | |
![]() |
CopyTo(KeyValuePair`2[], int) | |
![]() |
DecodeBase64Attributes(String[]) |
Decodes root-level Base64-encoded strings to their binary representations. Use this method if the Document was constructed from JSON that contains base64-encoded binary values, which result from calling ToJson on a Document with binary data. Individual strings become binary data. List and sets of Base64-encoded strings become lists and sets of binary data. |
![]() |
ForceConversion(DynamoDBEntryConversion) | Returns a new instance of Document where all unconverted .NET types are converted to DynamoDBEntry types using a specific conversion. |
![]() ![]() |
FromAttributeMap(Dictionary`2) | |
![]() ![]() |
FromJson(string) | Creates a document from a JSON string. The conversion is as follows: Objects are converted to DynamoDB M types. Arrays are converted to DynamoDB L types. Boolean types are converted to DynamoDB BOOL types. Null values are converted to DynamoDB NULL types. Numerics are converted to DynamoDB N types. Strings are converted to DynamoDB S types. |
![]() |
GetAttributeNames() | Returns the names of all the attributes. |
![]() |
GetEnumerator() | |
![]() |
IsAttributeChanged(string) | Returns true if the attribute has been changed. |
![]() |
IsDirty() | Returns true if the document contains attributes that have not been saved. |
![]() |
Remove(string) | |
![]() |
Remove(KeyValuePair`2) | |
![]() |
ToAttributeMap() | Creates a map of attribute names mapped to AttributeValue objects. Converts .NET types using the conversion specified by AWSConfigs.DynamoDBConfig.ConversionSchema |
![]() |
ToAttributeMap(DynamoDBEntryConversion) | Creates a map of attribute names mapped to AttributeValue objects. |
![]() |
ToAttributeUpdateMap(bool) | Creates a map of attribute names mapped to AttributeValueUpdate objects. |
![]() |
ToAttributeUpdateMap(DynamoDBEntryConversion, bool) | Creates a map of attribute names mapped to AttributeValueUpdate objects. |
![]() |
ToExpectedAttributeMap() | Creates a map of attribute names mapped to ExpectedAttributeValue objects. |
![]() |
ToExpectedAttributeMap(DynamoDBEntryConversion) | Creates a map of attribute names mapped to ExpectedAttributeValue objects. |
![]() |
ToJson() |
Converts the current Document into a matching JSON string. DynamoDB types are a superset of JSON types, thus the following DynamoDB cannot be properly represented as JSON data: PrimitiveList (SS, NS, BS types) - these sets will be converted to JSON arrays Binary Primitive (B type) - binary data will be converted to Base64 strings If the resultant JSON is passed to Document.FromJson, the binary values will be treated as Base64 strings. Invoke Document.DecodeBase64Attributes to decode these strings into binary data. |
![]() |
ToJsonPretty() |
Converts the current Document into a matching pretty JSON string. DynamoDB types are a superset of JSON types, thus the following DynamoDB cannot be properly represented as JSON data: PrimitiveList (SS, NS, BS types) - these sets will be converted to JSON arrays Binary Primitive (B type) - binary data will be converted to Base64 strings If the resultant JSON is passed to Document.FromJson, the binary values will be treated as Base64 strings. Invoke Document.DecodeBase64Attributes to decode these strings into binary data. |
![]() |
TryGetValue(string, DynamoDBEntry) |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8