OrderGroup.AddOrderform Method (PIA)

Use this method to add an OrderForm object with all of its contents to the OrderGroup object.

If the strOrderFormName is not supplied, it defaults to "default".

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub AddOrderform(orderform As Object,
  Optional strOrderFormName As Object)

[C#]

using Microsoft.CommerceServer.Interop.Orders;
using Microsoft.CommerceServer.Interop;       //For IDictionary
…
public void AddOrderform(IDictionary orderform,
  objectstrOrderFormName);

Parameters

[Visual Basic .NET]

  • orderform
    A Dictionary object that contains the OrderForm object that will be added.
  • strOrderFormName
    An Object that specifies the OrderForm object name.

[C#]

  • orderform
    A Microsoft.CommerceServer.Interop.IDictionary object that will be added.
  • strOrderFormName
    An object that contains the OrderForm object name.

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

' dOrderForm is a Dictionary Object
' sMyOrderName is a string
' oOrderGroup is a Commerce.OrderGroup Object
oOrderGroup.AddOrderform(dOrderForm,sMyOrderName)

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.