Share via


Item Property (String)

Gets the OrderAddress object from the current collection, based upon the specified key.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    orderAddressNameOrId As String _
) As OrderAddress
'Usage
Dim instance As OrderAddressCollection
Dim orderAddressNameOrId As String
Dim value As OrderAddress

value = instance.Item(orderAddressNameOrId)
public OrderAddress Item[
    string orderAddressNameOrId
] { get; }
public:
property OrderAddress^ Item[String^ orderAddressNameOrId] {
    OrderAddress^ get (String^ orderAddressNameOrId);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderAddress
The OrderAddress with the specified Name or OrderAddressId. nullNothingnullptra null reference (Nothing in Visual Basic) is returned if no such OrderAddress exists.

Exceptions

Exception Condition
ArgumentNullException

orderAddressName is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Gets the OrderAddress object in the OrderAddressCollection collection with the specified key.

Permissions

See Also

Reference

OrderAddressCollection Class

OrderAddressCollection Members

Item Overload

Microsoft.CommerceServer.Runtime.Orders Namespace