You are here: Data Classes > Ektron.Cms.Commerce Namespace > Classes > RegionData Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
RegionData Class

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.

C#
public class RegionData;
Visual Basic
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 
 
Returns Name of Region.  
 
Validates the RegionData object is valid for saving.  
 
Name 
Description 
 
Code 
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.  
 
Id 
Gets or sets the ID of the region.  
 
Name 
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. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!