Show / Hide Table of Contents

Class Country

Class that holds one row of the Country table

Inheritance
Object
Country
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Globalization
Assembly: SoDataBase.dll
Syntax
public class Country

Constructors

Country(CountryRow)

Declaration
public Country(CountryRow row)
Parameters
Type Name Description
CountryRow row

Properties

AddressLayout

Points to address format used in the GUI

Declaration
public AddressLayout AddressLayout { get; }
Property Value
Type Description
AddressLayout

AddressLayoutDomestic

Points to address format used for labels to own country

Declaration
public AddressLayout AddressLayoutDomestic { get; }
Property Value
Type Description
AddressLayout

AddressLayoutForeign

Points to address format used for labels to other countries than own country

Declaration
public AddressLayout AddressLayoutForeign { get; }
Property Value
Type Description
AddressLayout

CountryId

Primary key

Declaration
public int CountryId { get; }
Property Value
Type Description
Int32

Cultures

Microsoft .NET supported cultures that represents languages in the country.

Declaration
[Obsolete("Temporary unavailable", true)]
public CultureInfo[] Cultures { get; }
Property Value
Type Description
CultureInfo[]

CurrencyId

Default currency for this country

Declaration
public int CurrencyId { get; }
Property Value
Type Description
Int32

DefaultLanguageCode

Declaration
public string DefaultLanguageCode { get; }
Property Value
Type Description
String

DefaultLCID

Declaration
public int DefaultLCID { get; }
Property Value
Type Description
Int32

Deleted

Declaration
public bool Deleted { get; }
Property Value
Type Description
Boolean

DomainName

Web domain identifier (.no, .uk, etc; but without the dot)

Declaration
public string DomainName { get; }
Property Value
Type Description
String

EnglishName

Country name in English

Declaration
public string EnglishName { get; }
Property Value
Type Description
String

FlagresId

Internal resource ID of flag

Declaration
[Obsolete("The flag is now available as an image: Use Flag", false)]
public uint FlagresId { get; }
Property Value
Type Description
UInt32

IsInterAreaPrefixClassic

Classic inter-area prefixes behave in the following way: If you are in the same area as the one you're calling to, you drop the prefix (typically 0) and also the area code. If you are outside, but inside the country, you dial the 0 and the area code. If you are outside the country, you dial your country's dial-out, the target country, and the target area code (without the 0). Non-classic inter-area prefixes retain the 0 and the area code inside the country, and drop the 0 when calling from another country.

Declaration
[Obsolete("This feature is removed, as it is not supported when dialing phone numbers.", false)]
public bool IsInterAreaPrefixClassic { get; }
Property Value
Type Description
Boolean
Remarks

Classic inter-area prefixes are displayed like +46 (0) 8 123 4567, while non-classics would look like +46 8 12 456 from abroad; inside, a classic would be 8 123 4567, while a non-classic would be 08 123 4567. If the inter-area code is non-empty and not exactly equal to "0", it is considered classic. The inter-area code of "0" is NOT classic by default, but can be forced to be classic by ending the customphonedescription field with the token "/classic".

Complain to your national phone authority if you are confused. We did not invent this :-).

IsInterAreaPrefixMandatoryOnInternationalCalls

True if inter are prefix is mandatory even when calling from abroad.

Declaration
public bool IsInterAreaPrefixMandatoryOnInternationalCalls { get; }
Property Value
Type Description
Boolean
Remarks

This value is true if the InterAreaPrefix coulumn of the country table ends with m.

IsInterAreaPrefixMandatoryOnNationalCalls

True if inter area prefix is mandatory on all national calls

Declaration
public bool IsInterAreaPrefixMandatoryOnNationalCalls { get; }
Property Value
Type Description
Boolean
Remarks

This value is true if there is a valie in InterAreaPrefix

ISO3166Alpha2

Two-letter country-code according to ISO3166

Declaration
public string ISO3166Alpha2 { get; }
Property Value
Type Description
String

ISO3166Alpha3

Three-letter country-code according to ISO3166

Declaration
public string ISO3166Alpha3 { get; }
Property Value
Type Description
String

ISO3166EnglishName

English short name according to ISO3166

Declaration
[Obsolete("Use English name instead", true)]
public string ISO3166EnglishName { get; }
Property Value
Type Description
String

ISO3166Number

Numeric country-code according to ISO3166

Declaration
public uint ISO3166Number { get; }
Property Value
Type Description
UInt32

Name

Country name in local language

Declaration
public string Name { get; }
Property Value
Type Description
String

OrgNrText

Lead text for organisation field, multi-language format

Declaration
public string OrgNrText { get; }
Property Value
Type Description
String

PhoneDialInPrefix

Country's phone country code.

Declaration
public string PhoneDialInPrefix { get; }
Property Value
Type Description
String

PhoneDialInterAreaPrefix

Code to dial another areacode within the country. See remarks of IsInterAreaPrefixClassic for a discussion of functionality related to this property, which is not quite trivial

Declaration
public string PhoneDialInterAreaPrefix { get; }
Property Value
Type Description
String
Remarks

Trailing m characters are removed but can be checked using IsInterAreaPrefixMandatoryOnNationalCalls.

PhoneDialOutFaxPrefix

Phone code for Fax to dial out from the country.

Declaration
[Obsolete("Use PhoneDialOutPrefix instead", false)]
public string PhoneDialOutFaxPrefix { get; }
Property Value
Type Description
String

PhoneDialOutPrefix

Phone code to dial out from the country.

Declaration
public string PhoneDialOutPrefix { get; }
Property Value
Type Description
String

PhoneIsNorthAmerican

Is the phone system part of the North-American phone system..

Declaration
public bool PhoneIsNorthAmerican { get; }
Property Value
Type Description
Boolean

Rank

Rank order

Declaration
public short Rank { get; }
Property Value
Type Description
Int16

RegionInfo

Information about the country/region according to the .NET Framework.

Declaration
public RegionInfo RegionInfo { get; }
Property Value
Type Description
RegionInfo

Row

Declaration
public CountryRow Row { get; }
Property Value
Type Description
CountryRow

Tooltip

Tooltip or other description

Declaration
public string Tooltip { get; }
Property Value
Type Description
String

ZipPrefix

N- DK- etc.

Declaration
public string ZipPrefix { get; }
Property Value
Type Description
String

Methods

ParseMultiLanguageString(String)

Parse a multi-language string according to the default language of the Country

Declaration
public string ParseMultiLanguageString(string multiLanguageString)
Parameters
Type Name Description
String multiLanguageString
Returns
Type Description
String

Culture specific string part, or original string if there is a problem

Examples

String example from PrefDesc table: US:"Location and size";GE:"Position und Größe";NO:"Posisjon og størrelse"

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top