Gets a property values collection from SimpleDB.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public PropertyValues GetAttributes<T>( Object itemName, params string[] propertyNames ) |
Visual Basic |
---|
Public Function GetAttributes(Of T) ( _ itemName As Object, _ ParamArray propertyNames As String() _ ) As PropertyValues |
Visual C++ |
---|
public: generic<typename T> virtual PropertyValues^ GetAttributes( Object^ itemName, ... array<String^>^ propertyNames ) sealed |
Parameters
- itemName
- Type: System..::..Object
Identifies the item for which attributes will be retrieved
- propertyNames
- Type: array<System..::..String>[]()[][]
List of properties whose values will be retrieved
Type Parameters
- T
- Item type which identifies the SimpleDB domain and mapping rules for converting attributes to property values
Return Value
The property values or null if no attributes exist for the specified item name.Implements
ISimol..::..GetAttributes<(Of <<'(T>)>>)(Object, array<String>[]()[][])Remarks
Supports retrieval of a subset of typed property values when
you don't need or want to retrieve all attributes stored in a domain.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | If the itemName parameter is null |
System..::..ArgumentException | If the itemName type is invalid for the item type |
AmazonSimpleDBException | If the request to SimpleDB fails for any reason |
Simol..::..SimolDataException | If there are any property value conversion failures |
Simol..::..SimolConfigurationException | If no valid SimpleDB mapping can be configured for the specified item type |