Share via


OrderAddress Constructor (String, Profile) (BCL)

Use this method to create a new instance of the OrderAddress class with the specified address name and profile object instance containing address information.

Definition

[Visual Basic .NET]

Public Sub New( _ByValaddressName As System.String, _
  ByValaddress As Profile _
) 

[C#]

public OrderAddress(System.StringaddressName,
  Profileaddress);

Parameters

[Visual Basic .NET]

  • addressName
    Name of this address object.
  • address
    Profile object to copy address information from.

[C#]

  • addressName
    Name of this address object.
  • address
    Profile object to copy address information from.

Remarks

This method copies property values from the specified profile object into the order address dictionary using the addressMap tag defined in the web.config file for the application. If no addressMap tag is specified, then the default addressMap tag is used.

Throws ArgumentNullException if the addressName or address parameter is null.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Orders

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.