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
- orderAddressNameOrId
Type: System..::.String
The Name or OrderAddressId of the OrderAddress to retrieve.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.