Class Country
Class that holds one record from the Country table
Inherited Members
Namespace: SuperOffice.CRM.Globalization
Assembly: SoDataBase.dll
Syntax
public class Country
Constructors
Country(CountryRecordData)
Class that holds one record from the Country table
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 |
|---|---|
| int |
CurrencyId
Default currency for this country
Declaration
public int CurrencyId { get; }
Property Value
| Type | Description |
|---|---|
| int |
DefaultLCID
Class that holds one record from the Country table
Declaration
public int DefaultLCID { get; }
Property Value
| Type | Description |
|---|---|
| int |
DefaultLanguageCode
Class that holds one record from the Country table
Declaration
public string DefaultLanguageCode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Deleted
Class that holds one record from the Country table
Declaration
public bool Deleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
|---|---|
| uint |
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 |
ISO3166Number
Numeric country-code according to ISO3166
Declaration
public uint ISO3166Number { get; }
Property Value
| Type | Description |
|---|---|
| uint |
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 |
|---|---|
| bool |
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 |
|---|---|
| bool |
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 |
|---|---|
| bool |
Remarks
This value is true if there is a valie in InterAreaPrefix
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 |
|---|---|
| bool |
Rank
Rank order
Declaration
public short Rank { get; }
Property Value
| Type | Description |
|---|---|
| short |
RegionInfo
Information about the country/region according to the .NET Framework.
Declaration
public RegionInfo RegionInfo { get; }
Property Value
| Type | Description |
|---|---|
| RegionInfo |
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()
Class that holds one record from the Country table
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |