Class DateTimeZoneCache
  
  
  
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  
    Inheritance
    Object
    DateTimeZoneCache
   
  
  
    Inherited Members
    
      Object.ToString()
    
    
      Object.Equals(Object)
    
    
      Object.Equals(Object, Object)
    
    
      Object.ReferenceEquals(Object, Object)
    
    
      Object.GetHashCode()
    
    
      Object.GetType()
    
    
      Object.MemberwiseClone()
    
   
  
  Assembly: NodaTime.dll
  Syntax
  
    public sealed class DateTimeZoneCache : IDateTimeZoneProvider
   
  
  
  Constructors
  
  DateTimeZoneCache(IDateTimeZoneSource)
  
  
  
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
  
    public DateTimeZoneCache(IDateTimeZoneSource source)
   
  Parameters
  
  
  
  Exceptions
  
  Properties
  
  Ids
  
Gets the list of valid time zone ids advertised by this provider.
  
  
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
  
    public ReadOnlyCollection<string> Ids { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | ReadOnlyCollection<String> | The System.Collections.Generic.IEnumerable<T> of string ids. (The value returned is never null.) | 
    
  
  
  
  
  Item[String]
  
Returns the time zone for the given ID.
  
  
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
  
    public DateTimeZone this[string id] { get; }
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | String | id | The time zone id to find. | 
    
  
  Property Value
  
  
  
  Exceptions
  
  
  VersionId
  
Gets the version ID of this provider. This is simply the 
VersionId returned by
the underlying source.
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
  
    public string VersionId { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | String | The version ID of this provider. (The value returned is never null.) | 
    
  
  Methods
  
  GetSystemDefault()
  
Gets the time zone from this provider that matches the system default time zone, if a matching time zone is
available.
  
  
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
  
    public DateTimeZone GetSystemDefault()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | DateTimeZone | The provider-specific representation of the system default time zone.
 (The value returned is never null.) | 
    
  
  
  
  Exceptions
  
  
  GetZoneOrNull(String)
  
Returns the time zone for the given ID, if it's available.
  
  
  Since 1.0.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
  
    public DateTimeZone GetZoneOrNull(string id)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | String | id | The time zone ID to find. | 
    
  
  Returns
  
  
  
  Exceptions
  
    
      
        | Type | Condition | 
    
    
      
        | ArgumentNullException | id is null. | 
    
  
  Implements
  
  Extension Methods
  
  See Also