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