OrderGroup.GetAddress Method (PIA)

Use this method to get the specified address Dictionary object.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Orders
…
Public Function GetAddress(strAddressId As String) As Object

[C#]

using Microsoft.CommerceServer.Interop.Orders;
using Microsoft.CommerceServer.Interop;       //For IDictionary

public IDictionary GetAddress(stringstrAddressId);

Parameters

[Visual Basic .NET]

  • strAddressId
    A String that specifies the address ID.

[C#]

  • strAddressId
    A string that specifies the address ID.

Return Values

[Visual Basic .NET] If the specified address is found, this method returns a reference to that Dictionary object, otherwise it returns a Null object.

[C#]

This method returns the Microsoft.CommerceServer.Interop.IDictionary interface to a Dictionary object.

If the specified address is not found, the IDictionary interface is to a null object.

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
' dDict is a Dictionary object

dDict = oOrderGroup.GetAddress("{C4F9C9CC-C33E-11D0-B8A0-00C04FB616C7}")

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.