OrderGroup.GetItemInfo Method (PIA)

Use this method to get a reference to the line-item dictionary from the specified OrderForm object at the specified index. If the strOrderFormName parameter is not supplied, it defaults to "default".

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Function GetItemInfo(nItemIndex As Integer,
  Optional strOrderFormName As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop.Orders;
using Microsoft.CommerceServer.Interop;       //For IDictionary
…
public IDictionary GetItemInfo(intnItemIndex,
  objectstrOrderFormName);

Parameters

[Visual Basic .NET]

  • nItemIndex
    An Integer that specifies the line-item index.
  • strOrderFormName
    An Object that specifies the OrderForm object name.

[C#]

  • nItemIndex
    An int that specifies the line-item index.
  • strOrderFormName
    An object that specifies the OrderForm object name.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a Dictionary object that contains the line-item information.

[C#] This method returns an IDictionary interface to the Dictionary object containing the line-item information.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

Example

' oOrderGroup is a Commerce.OrderGroup object
' dDict is a Dictionary Object
dDict = oOrderGroup.GetItemInfo(3, "testOrderFormName")

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Interop.Orders.Requisition.dll

See Also

OrderGroup Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.