Gets an ad-hoc list of item values from SimpleDB without an item type generic parameter.

Namespace: Simol
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public PropertyValues GetAttributes(
	ItemMapping mapping,
	Object itemName,
	params string[] propertyNames
)
Visual Basic
Public Function GetAttributes ( _
	mapping As ItemMapping, _
	itemName As Object, _
	ParamArray propertyNames As String() _
) As PropertyValues
Visual C++
public:
virtual PropertyValues^ GetAttributes(
	ItemMapping^ mapping, 
	Object^ itemName, 
	... array<String^>^ propertyNames
) sealed

Parameters

mapping
Type: Simol..::..ItemMapping
The item mapping
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

Return Value

The property values or null if no attributes exist for the specified item name.

Implements

ISimol..::..GetAttributes(ItemMapping, 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

ExceptionCondition
System..::..ArgumentNullExceptionIf the mapping or itemName parameters are null
System..::..ArgumentExceptionIf the itemName type is invalid for the item type
AmazonSimpleDBExceptionIf the request to SimpleDB fails for any reason
Simol..::..SimolDataExceptionIf there are any property value conversion failures
Simol..::..SimolConfigurationExceptionIf no valid SimpleDB mapping can be configured for the specified item type

See Also