Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the zero based index of the OrderAddress with the specified name.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function IndexOf ( _
orderAddressName As String _
) As Integer
'Usage
Dim instance As OrderAddressCollection
Dim orderAddressName As String
Dim returnValue As Integer
returnValue = instance.IndexOf(orderAddressName)
public int IndexOf(
string orderAddressName
)
public:
int IndexOf(
String^ orderAddressName
)
public function IndexOf(
orderAddressName : String
) : int
Parameters
- orderAddressName
Type: System..::.String
The name of the OrderAddress.
Return Value
Type: System..::.Int32
The zero based index of the OrderAddress, or -1 if the address is not found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | orderAddressName 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 string is not found.
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.