Class TimeZoneProvider
Provides the timezone list.
If no search value is passed in the list is restricted to 'available' timezones
Inheritance
TimeZoneProvider
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("TimeZone")]
[MDOAdditionalInfo("Get all timezones", "[all]")]
[MDOAdditionalInfo("Get all active timezones and the given location", 1234)]
[MDOAdditionalInfo("locationId", "Get the specific Timezone location", 1234)]
public class TimeZoneProvider : ISoListProvider, ISoList, IPlugin
Constructors
TimeZoneProvider()
Declaration
public TimeZoneProvider()
Fields
_additionalInfo
Declaration
protected string _additionalInfo
Field Value
ProviderName
Declaration
public const string ProviderName = "TimeZone"
Field Value
Methods
AddItems()
Declaration
protected virtual void AddItems()
GenerateName(String, Double)
Generates a string in this format: Norway(GMT+01.00)
Declaration
public static string GenerateName(string name, double bias)
Parameters
Returns
GenerateOffsetString(Double, String)
Declaration
public static string GenerateOffsetString(double displayBias, string separator)
Parameters
Returns
PopulateFromReader(List<ISoListItem>, SoDataReader, Boolean, Boolean, Boolean)
Declaration
protected virtual void PopulateFromReader(List<ISoListItem> items, SoDataReader reader, bool includeCountryName, bool isHistoryItem = false, bool useCodeAsType = false)
Parameters
Explicit Interface Implementations
ISoList.HeadingItems
Declaration
List<ISoListHeading> ISoList.HeadingItems { get; }
Returns
ISoList.HistoryItems
Declaration
List<ISoListItem> ISoList.HistoryItems { get; }
Returns
ISoList.RootItems
Declaration
List<ISoListItem> ISoList.RootItems { get; }
Returns
ISoListProvider.Construct(String, String, Int32[], Boolean, String, Boolean)
Declaration
void ISoListProvider.Construct(string listName, string additionalInfo, int[] historyIDs, bool onlyReadHistory, string searchValue, bool forceFlatList)
Parameters
ISoListProvider.HistoryInfo
Declaration
HistoryInfo ISoListProvider.HistoryInfo { get; }
Returns
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)