OrderGroup.SetAddressFromFields Method (PIA)

Use this method to set the OrderGroup object address dictionary values as specified by the supplied Fields object. The column names in the field object will be mapped to dictionary key names in the resultant address dictionary.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Sub SetAddressFromFields(strAddressId As String,
  flds As Object)

[C#]

using Microsoft.CommerceServer.Interop.Orders;
using ADODB26Lib;                              //For Fields
…
public void SetAddressFromFields(stringstrAddressId,
  Fields flds);

Parameters

[Visual Basic .NET]

  • strAddressId
    A String that specifies the address ID of the address dictionary to be added.
  • flds
    A Fields object that contains the address information to be added.

[C#]

  • strAddressId
    A string that specifies the address ID of the address dictionary to be added.
  • flds
    An ADODB26Lib.Fields object that contains the address information to be added.

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

' oOG is a Commerce.OrderGroup object
' oFlds is a Fields object
oOG.SetAddressFromFields("{34ECC9CC-C33E-11D0-B8A0-00C04FB616C7}", _
    oFlds)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

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

See Also

OrderGroup Class

OrderGroup.SetAddress

Copyright © 2005 Microsoft Corporation.
All rights reserved.