Class Country
- Namespace
- Dynamicweb.Ecommerce.International
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a country.
[Serializable]
public class Country : ICloneable
- Inheritance
-
Country
- Implements
- Inherited Members
Constructors
Country()
Initializes a new instance of the class.
public Country()
Properties
AddressDisplayFormat
Gets or sets the display format
public string AddressDisplayFormat { get; set; }
Property Value
AddressDisplayFormatMode
Gets or sets the display format mode
public AddressFormatMode AddressDisplayFormatMode { get; set; }
Property Value
AddressEditFormat
Gets or sets the edit format
public string AddressEditFormat { get; set; }
Property Value
AddressEditFormatMode
Gets or sets the edit format mode
public AddressFormatMode AddressEditFormatMode { get; set; }
Property Value
Code2
Gets or sets the two-character code.
public string Code2 { get; set; }
Property Value
Code3
Gets or sets the three-character code.
public string Code3 { get; set; }
Property Value
CultureInfo
Gets or sets the culture information.
public string CultureInfo { get; set; }
Property Value
CurrencyCode
Gets or sets the currency code.
public string CurrencyCode { get; set; }
Property Value
Number
Gets or sets the number.
public int Number { get; set; }
Property Value
RegionCode
Gets or sets the region code.
public string RegionCode { get; set; }
Property Value
Regions
Gets or sets the regions.
public CountryCollection Regions { get; }
Property Value
ReverseChargeForVat
Gets or sets the reverse VAT
public bool ReverseChargeForVat { get; set; }
Property Value
Translations
Gets the translations for the current entity
public TranslationCollection<CountryTranslation> Translations { get; }
Property Value
Vat
Gets or sets the VAT
public double Vat { get; set; }
Property Value
VatPostingGroup
Gets or sets the VAT Posting Group
public string VatPostingGroup { get; set; }
Property Value
Methods
Clone()
Creates a new instance of a class with the same value as an existing instance.
public object Clone()
Returns
Remarks
Method performs a deep copy of all properties except the LanguageId property. LanguageId property always is set to Nothing.
GetDisplayAddress(CountryAddressInfo)
Gets the display address according to the address format information for specific country
public static List<string> GetDisplayAddress(CountryAddressInfo addressInfo)
Parameters
addressInfo
CountryAddressInfoAddress information
Returns
GetDisplayAddress(string)
Gets the display address according to the address format information for specific country
public static List<List<string>> GetDisplayAddress(string countryCode)
Parameters
countryCode
string2 letter country code
Returns
GetEditAddress(CountryAddressInfo)
Gets the edit address data according to the address format information for specific country
public static List<AddressFormatEditRow> GetEditAddress(CountryAddressInfo addressInfo)
Parameters
addressInfo
CountryAddressInfoAddress information
Returns
GetEditAddress(string)
Gets the edit address data according to the address format information for specific country
public static List<List<string>> GetEditAddress(string countryCode)
Parameters
countryCode
string2 letter country code
Returns
GetName(string)
Gets the translated name in specified language
public string GetName(string languageId)
Parameters
languageId
string
Returns
SetName(string, string)
Sets the translated name in specified language
public void SetName(string languageId, string name)