OrderGroup.SetAddress Method (PIA)

Use this method to add a specified address dictionary to the addresses collection of the OrderGroup object.

Definition

[Visual Basic .NET]

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

[C#]

using Microsoft.CommerceServer.Interop.Orders;
using Microsoft.CommerceServer.Interop;       //For IDictionary
…
public void SetAddress(stringstrAddressId,
  IDictionary oAddressDict);

Parameters

[Visual Basic .NET]

  • strAddressId
    A String that specifies the address ID of the address to be added.
  • oAddressDict
    A Dictionary object that contains the address information to be added.

[C#]

  • strAddressId
    A string that specifies the address ID of the address to be added.
  • oAddressDict
    A Microsoft.CommerceServer.Interop.IDictionary interface to the Dictionary object that contains the address.

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
' oAddDict is an address Dictionary object
oOrderGroup.SetAddress("{AABBC9CC-C33E-11D0-B8A0-00C04FB616C7}", oAddDict)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Orders

Platforms: Windows 2000, Windows Server 2003

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

See Also

OrderGroup Class

OrderGroup.SetAddressFromFields

Copyright © 2005 Microsoft Corporation.
All rights reserved.