Ektron CMS400.NET API Documentation
|
Gets or sets information about specified geographic regions within countries that your eCommerce site services. For example, in the United States of America, each state is a region. So, if you were adding New Hampshire as a region, the code might look like this.
RegionData region = new RegionData(); region.Name = "New Hampshire"; region.CountryId = 840; // 840 is the country code for the United States. region.Code = "NH"; region.Enabled = true; RegionAPI.Add(region);
To update an existing region's information, use the Id property to specify the region. For example, to update New Hampshire's information, add region.Id = 31; to the code above.
public class RegionData;
Public Class RegionData
RegionData.cs
Name |
Description |
The methods of the RegionData class are listed here. | |
The properties of the RegionData class are listed here. |
|
Name |
Description |
|
Gets or sets the code of the region. This is typically an abbreviation for the name of the region. For example, if you add New Hampshire as a region, you would enter "NH" for this property. Each region must have its own unique code. You cannot have more than one region with the same code. This property is required when creating an region data object. | |
|
Gets or sets the ID of the country to which the region belongs. For example, if you are adding a region to the United States, you would enter "840" for this property. This property is required when creating an region data object. | |
|
Gets or sets whether or not the region is enabled for use. | |
|
Gets or sets the ID of the region. | |
|
Gets or sets the name of the region. For example, if the region is a US state, you might enter "New Hampshire" for this property. This property is required when creating an region data object. |
|
Name |
Description |
|
This is the overview for the RegionData constructor overload. |
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|