Ektron CMS400.NET API Documentation
|
Gets or sets information about a specified address. For example, if you were creating an address data object for a fictional user, Ivan Tory, at Ektron's address, the code might look like this:
Ektron.Cms.Commerce.AddressData address = new Ektron.Cms.Commerce.AddressData(); address.Name = "Ivan Tory"; address.Company = "Ektron, Inc."; address.AddressLine1 = "542 Amherst Street (Route 101A)"; address.City = "Nashua"; address.Region = new Ektron.Cms.Commerce.RegionData(); address.Region.Id = 31; // 31 is the region ID for New Hampshire. address.PostalCode = "03063"; address.Country = new Ektron.Cms.Commerce.CountryData(); address.Country.Id = 840; // 840 is the country ID for the United States address.Phone = "603-594-0249"; AddressAPI.Add(address);
To update an existing address's information, use the Id property to specify the address.
public class AddressData;
Public Class AddressData
AddressData.cs
Name |
Description |
The properties of the AddressData class are listed here. |
|
Name |
Description |
|
Gets or sets the first line of the address. This property is required when creating an address data object. | |
|
Gets or sets line 2 of address. | |
|
Gets or sets the city associated with this address. This property is required when creating an address data object. | |
|
Gets or sets the name of the company associated with this address. For example, if the address is for Ektron, enter "Ektron, Inc." in the property. | |
|
Gets or sets the country associated with this address. | |
|
Gets or sets the ID of an address. | |
|
Gets or sets the name associated with the address. For example, if you are entering an address for Ivan Tory, enter the name "Ivan Tory" in this property. This property is required when creating an address data object. | |
|
Gets or sets the phone number associated with this address. | |
|
Gets or sets the postal code associated with this address. This property is required when creating an address data object. | |
|
Gets or sets the region associated with this address. |
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|