Share via


OrderGroup.PutOrderFormValue Method (PIA)

Use this method to set an attribute on an OrderForm object. If the strOrderFormName parameter is supplied, and the OrderForm object does not exist in the OrderGroup object, then a new OrderForm object with the supplied name is created.

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

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub PutOrderFormValue(strKey As String,
  vtValue As Object,
  Optional strOrderFormName As Object)

[C#]

using Microsoft.CommerceServer.Interop.Orders;
…
public void PutOrderFormValue(stringstrKey,
  objectvtValue,
  objectstrOrderFormName);

Parameters

[Visual Basic .NET]

  • strKey
    A String that specifies the key whose attribute will store the value specified by the vtValue parameter.
  • vtValue
    An Object that specifies the value to store in the attribute of the key specified by the strKey parameter.
  • strOrderFormName
    An Object that specifies the OrderForm object name.

[C#]

  • strKey
    A string that specifies the key whose attribute will store the value specified by the vtValue parameter.
  • vtValue
    An object that specifies the value to store in the attribute of the key specified by the strKey parameter.
  • strOrderFormName
    An object that specifies 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

' oOrderGroup is a Commerce.OrderGroup Object
oOrderGroup.PutOrderFormValue(handling_total, "$ 421.23")

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.