Show / Hide Table of Contents

Class Country

Class that holds one record from the Country table

Inheritance
System.Object
Country
Namespace: SuperOffice.CRM.Globalization
Assembly: SoDataBase.dll
Syntax
public class Country : Object

Constructors

Country(CountryRecordData)

Declaration
public Country(CountryRecordData record)
Parameters
Type Name Description
CountryRecordData record

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
System.Int32

CurrencyId

Default currency for this country

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

DefaultLanguageCode

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

DefaultLCID

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

Deleted

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

DomainName

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

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

EnglishName

Country name in English

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

FlagresId

Internal resource ID of flag

Declaration
public uint FlagresId { get; }
Property Value
Type Description
System.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
public bool IsInterAreaPrefixClassic { get; }
Property Value
Type Description
System.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
System.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
System.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
System.String

ISO3166Alpha3

Three-letter country-code according to ISO3166

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

ISO3166Number

Numeric country-code according to ISO3166

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

Name

Country name in local language

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

OrgNrText

Lead text for organisation field, multi-language format

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

PhoneDialInPrefix

Country's phone country code.

Declaration
public string PhoneDialInPrefix { get; }
Property Value
Type Description
System.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
System.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
public string PhoneDialOutFaxPrefix { get; }
Property Value
Type Description
System.String

PhoneDialOutPrefix

Phone code to dial out from the country.

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

PhoneIsNorthAmerican

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

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

Rank

Rank order

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

RegionInfo

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

Declaration
public RegionInfo RegionInfo { get; }
Property Value
Type Description
System.Globalization.RegionInfo

Tooltip

Tooltip or other description

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

ZipPrefix

N- DK- etc.

Declaration
public string ZipPrefix { get; }
Property Value
Type Description
System.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
System.String multiLanguageString
Returns
Type Description
System.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
System.String

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