GetPrimaryAddress Method
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Gets the primary address for this customer.
Namespace: Microsoft.Dynamics.Commerce.Runtime.DataModel
Assembly: Microsoft.Dynamics.Commerce.Runtime.Entities (in Microsoft.Dynamics.Commerce.Runtime.Entities.dll)
Syntax
'Declaration
Public Function GetPrimaryAddress As Address
'Usage
Dim instance As Customer
Dim returnValue As Address
returnValue = instance.GetPrimaryAddress()
public Address GetPrimaryAddress()
public:
Address^ GetPrimaryAddress()
Return Value
Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Address
The customer address.