Class PrimitiveList
- Namespace
- Amazon.DynamoDBv2.DocumentModel
- Assembly
- AWSSDK.DynamoDBv2.dll
A DynamoDBEntry that represents a primitive list DynamoDB type
public class PrimitiveList : DynamoDBEntry, ICloneable, IEquatable<PrimitiveList>
- Inheritance
-
PrimitiveList
- Implements
- Inherited Members
Constructors
PrimitiveList()
Constructs an empty PrimitiveList. Values are configured to be saved as strings.
public PrimitiveList()
PrimitiveList(DynamoDBEntryType)
Constructs an empty PrimitiveList and specifies the type of its elements.
public PrimitiveList(DynamoDBEntryType type)
Parameters
typeDynamoDBEntryType
Properties
Entries
Collection of Primitive entries
public List<Primitive> Entries { get; set; }
Property Value
this[int]
Gets or sets Primitive at a specific location in the list.
public Primitive this[int i] { get; set; }
Parameters
iintIndex of the Primitive in question.
Property Value
- Primitive
Primitive in question.
Type
Type of Primitive items in the list
public DynamoDBEntryType Type { get; set; }
Property Value
Methods
Add(Primitive)
Adds a Primitive to the end of the list.
public void Add(Primitive value)
Parameters
valuePrimitivePrimitive to add.
AsArrayOfPrimitive()
Explicitly convert DynamoDBEntry to Primitive[]
public override Primitive[] AsArrayOfPrimitive()
Returns
- Primitive[]
Primitive[] value of this object
AsArrayOfString()
Explicitly convert DynamoDBEntry to String[]
public override string[] AsArrayOfString()
Returns
- string[]
String[] value of this object
AsHashSetOfByteArray()
Explicitly convert PrimitiveList to HashSet<byte[]>
public override HashSet<byte[]> AsHashSetOfByteArray()
Returns
AsHashSetOfPrimitive()
Explicitly convert PrimitiveList to HashSet<Primitive>
public override HashSet<Primitive> AsHashSetOfPrimitive()
Returns
AsHashSetOfString()
Explicitly convert DynamoDBEntry to HashSet<String>
public override HashSet<string> AsHashSetOfString()
Returns
AsListOfByteArray()
Explicitly convert PrimitiveList to byte[]
public override List<byte[]> AsListOfByteArray()
Returns
AsListOfMemoryStream()
Explicitly convert PrimitiveList to List<MemoryStream>
public override List<MemoryStream> AsListOfMemoryStream()
Returns
- List<MemoryStream>
List<MemoryStream> value of this object
AsListOfPrimitive()
Explicitly convert PrimitiveList to List<Primitive>
public override List<Primitive> AsListOfPrimitive()
Returns
AsListOfString()
Explicitly convert PrimitiveList to List<String>
public override List<string> AsListOfString()
Returns
Clone()
Implement the Clone method.
public override object Clone()
Returns
Equals(PrimitiveList)
Implement the Equals method from IEquatable
public bool Equals(PrimitiveList other)
Parameters
otherPrimitiveList
Returns
Equals(object)
Implement the Equals method.
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
Implement the GetHashCode method.
public override int GetHashCode()
Returns
Operators
explicit operator Primitive[](PrimitiveList)
Explicitly convert DynamoDBEntry to Primitive[]
public static explicit operator Primitive[](PrimitiveList p)
Parameters
pPrimitiveListDynamoDBEntry to convert
Returns
- Primitive[]
Primitive[] value of DynamoDBEntry
explicit operator HashSet<Primitive>(PrimitiveList)
Explicitly convert PrimitiveList to HashSet<Primitive>
public static explicit operator HashSet<Primitive>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
explicit operator HashSet<byte[]>(PrimitiveList)
Explicitly convert PrimitiveList to HashSet<byte[]>
public static explicit operator HashSet<byte[]>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
explicit operator HashSet<string>(PrimitiveList)
Explicitly convert PrimitiveList to HashSet<String>
public static explicit operator HashSet<string>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
explicit operator List<Primitive>(PrimitiveList)
Explicitly convert PrimitiveList to List<Primitive>
public static explicit operator List<Primitive>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
explicit operator List<byte[]>(PrimitiveList)
Explicitly convert PrimitiveList to List<byte[]>
public static explicit operator List<byte[]>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
explicit operator List<MemoryStream>(PrimitiveList)
Explicitly convert PrimitiveList to List<MemoryStream>
public static explicit operator List<MemoryStream>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
- List<MemoryStream>
List<MemoryStream> value of PrimitiveList
explicit operator List<string>(PrimitiveList)
Explicitly convert PrimitiveList to List<String>
public static explicit operator List<string>(PrimitiveList p)
Parameters
pPrimitiveListPrimitiveList to convert
Returns
explicit operator string[](PrimitiveList)
Explicitly convert DynamoDBEntry to String[]
public static explicit operator string[](PrimitiveList p)
Parameters
pPrimitiveListDynamoDBEntry to convert
Returns
- string[]
String[] value of DynamoDBEntry
implicit operator PrimitiveList(Primitive[])
Implicitly convert Primitive[] to DynamoDBEntry
public static implicit operator PrimitiveList(Primitive[] data)
Parameters
dataPrimitive[]Primitive[] data to convert
Returns
- PrimitiveList
DynamoDBEntry representing the data
implicit operator PrimitiveList(HashSet<Primitive>)
Implicitly convert HashSet<Primitive> to PrimitiveList
public static implicit operator PrimitiveList(HashSet<Primitive> data)
Parameters
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(HashSet<byte[]>)
Implicitly convert HashSet<byte[]> to PrimitiveList
public static implicit operator PrimitiveList(HashSet<byte[]> data)
Parameters
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(HashSet<string>)
Implicitly convert HashSet<String> to PrimitiveList
public static implicit operator PrimitiveList(HashSet<string> data)
Parameters
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(List<Primitive>)
Implicitly convert List<Primitive> to PrimitiveList
public static implicit operator PrimitiveList(List<Primitive> data)
Parameters
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(List<byte[]>)
Implicitly convert List<byte[]> to PrimitiveList
public static implicit operator PrimitiveList(List<byte[]> data)
Parameters
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(List<MemoryStream>)
Implicitly convert List<MemoryStream> to PrimitiveList
public static implicit operator PrimitiveList(List<MemoryStream> data)
Parameters
dataList<MemoryStream>List<MemoryStream> data to convert
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(List<string>)
Implicitly convert List<String> to PrimitiveList
public static implicit operator PrimitiveList(List<string> data)
Parameters
Returns
- PrimitiveList
PrimitiveList representing the data
implicit operator PrimitiveList(string[])
Implicitly convert String[] to DynamoDBEntry
public static implicit operator PrimitiveList(string[] data)
Parameters
datastring[]String[] data to convert
Returns
- PrimitiveList
DynamoDBEntry representing the data