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
- shippingGroupId
Type: System..::.Guid
Identifier of the ShippingMethod to retrieve the index.
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
- 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.
See Also
Reference
ShippingMethodCollection Class