OrderGroup.RemoveItem Method (PIA)
Use this method to remove a line item from the specified OrderForm object. The item index specified indicates which line item to remove.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub RemoveItem(Optional nItemIndex As Object,
Optional strOrderFormName As Object)
[C#]
using Microsoft.CommerceServer.Interop.Orders;
…
public void RemoveItem(objectnItemIndex,
objectstrOrderFormName);
Parameters
[Visual Basic .NET]
- nItemIndex
An Object that specifies the line-item index. If this value is null, all items in the OrderForm object are removed. - strOrderFormName
An Object that specifies the OrderForm object name. If the strOrderFormName parameter is not supplied, the strOrderFormName parameter defaults to "default". If both the nItemIndex and the strOrderFormName parameters are not supplied, then all items in all OrderForm objects are removed.
[C#]
- nItemIndex
An object that specifies the line-item index. If this value is null, all items in the OrderForm object are removed. - strOrderFormName
An object that specifies the OrderForm object name. If the strOrderFormName parameter is not supplied, the strOrderFormName parameter defaults to "default". If both the nItemIndex and the strOrderFormName parameters are not supplied, then all items in all OrderForm objects are removed
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Requirements
Namespace: Microsoft.CommerceServer.Interop.Orders
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Interop.Orders.Requisition.dll
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.