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 LineItem with the specified identifier.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function IndexOf ( _
lineItemId As Guid _
) As Integer
'Usage
Dim instance As LineItemCollection
Dim lineItemId As Guid
Dim returnValue As Integer
returnValue = instance.IndexOf(lineItemId)
public int IndexOf(
Guid lineItemId
)
public:
int IndexOf(
Guid lineItemId
)
public function IndexOf(
lineItemId : Guid
) : int
Parameters
- lineItemId
Type: System..::.Guid
The identifier of the LineItem.
Return Value
Type: System..::.Int32
The zero based index of the specified LineItem, or -1 if the line item is not found.
Remarks
Searches for the specified LineItem and returns the zero-based index of the first occurrence within the entire LineItemCollection. 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.