IndexOf Method (OrderAddress)

Returns the zero based index of the specified OrderAddress.

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

Syntax

'Declaration
Public Function IndexOf ( _
    orderAddress As OrderAddress _
) As Integer
'Usage
Dim instance As OrderAddressCollection
Dim orderAddress As OrderAddress
Dim returnValue As Integer

returnValue = instance.IndexOf(orderAddress)
public int IndexOf(
    OrderAddress orderAddress
)
public:
int IndexOf(
    OrderAddress^ orderAddress
)
public function IndexOf(
    orderAddress : OrderAddress
) : int

Parameters

Return Value

Type: System..::.Int32
The zero based index of the specified OrderAddress, or -1 if the address is not found.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

Searches for the specified OrderAddress and returns the zero-based index of the first occurrence within the entire OrderAddressCollection. Returns -1 if the specified object is not found.

Permissions

See Also

Reference

OrderAddressCollection Class

OrderAddressCollection Members

IndexOf Overload

Microsoft.CommerceServer.Runtime.Orders Namespace