Gets an item from SimpleDB.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public T Get<T>( Object itemName ) |
Visual Basic |
---|
Public Function Get(Of T) ( _ itemName As Object _ ) As T |
Visual C++ |
---|
public: generic<typename T> virtual T Get( Object^ itemName ) sealed |
Parameters
- itemName
- Type: System..::..Object
SimpleDB item name of the item to get.
Type Parameters
- T
- Type of the item to return
Return Value
The item or null if no attributes exist for the specified item name.Remarks
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | If the itemName parameter is null |
AmazonSimpleDBException | If the request to SimpleDB fails for any reason |
Simol..::..SimolDataException | If the SimpleDB item cannot be converted into the requested item type |
Simol..::..SimolConfigurationException | If no valid SimpleDB mapping can be configured for the requested item type |