Partager via


IndexOf Method (Guid)

Returns the index of the shipping method with the specified identifier.

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

Syntax

'Declaration
Public Function IndexOf ( _
    shippingGroupId As Guid _
) As Integer
'Usage
Dim instance As ShippingMethodCollection
Dim shippingGroupId As Guid
Dim returnValue As Integer

returnValue = instance.IndexOf(shippingGroupId)
public int IndexOf(
    Guid shippingGroupId
)
public:
int IndexOf(
    Guid shippingGroupId
)
public function IndexOf(
    shippingGroupId : Guid
) : int

Parameters

Return Value

Type: System..::.Int32
The index of the ShippingMethod to locate.

Remarks

Returns the index of the entry, or -1 if a ShippingMethod with specified shippingGroupId is not found in the collection.

Permissions

See Also

Reference

ShippingMethodCollection Class

ShippingMethodCollection Members

IndexOf Overload

Microsoft.CommerceServer.Orders Namespace