Puts multiple items into SimpleDB.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public void Put<T>( List<T> items ) |
Visual Basic |
---|
Public Sub Put(Of T) ( _ items As List(Of T) _ ) |
Visual C++ |
---|
public: generic<typename T> virtual void Put( List<T>^ items ) sealed |
Parameters
- items
- Type: System.Collections.Generic..::..List<(Of <(<'T>)>)>
Type Parameters
- T
Implements
ISimol..::..Put<(Of <<'(T>)>>)(List<(Of <<'(T>)>>))Remarks
Single items are put using the SimpleDB PutAttributes operation. Multiple items are
put using the BatchPutAttributes operation. Lists of items
are automatically split into multiple batches to fit within the 25 item limit for BatchPutAttributes.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | If the items parameter is null |
System..::..ArgumentException | If the items parameter contains more than one type of item |
AmazonSimpleDBException | If the request to SimpleDB fails for any reason |
Simol..::..SimolDataException | If the item cannot be converted to a SimpleDB item |
Simol..::..SimolConfigurationException | If no valid SimpleDB mapping can be configured for the specified item type |