VTimeZoneCollection Class

A type-safe collection of VTimeZone objects

Definition

Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
[SerializableAttribute]
public class VTimeZoneCollection : IList<VTimeZone>, 
	ICollection<VTimeZone>, IEnumerable<VTimeZone>, IEnumerable, 
	IList, ICollection
Inheritance
Object    VTimeZoneCollection
Implements
ICollectionVTimeZone, IEnumerableVTimeZone, IListVTimeZone, ICollection, IEnumerable, IList

Remarks

The class has a type-safe enumerator. It also uses a ReaderWriterLockSlim to synchronize access to the underlying collection as it is used as a static collection in the VCalendar object.

Constructors

VTimeZoneCollection Default constructor
VTimeZoneCollection(IEnumerableVTimeZone) Construct a collection from an enumerable list of VTimeZone objects

Properties

Count Return the number of items in the collection
IsFixedSize The collection is not of a fixed size
IsReadOnly This collection is never read-only
IsSynchronized ICollection.IsSynchronized implementation
ItemInt32 Collection indexer
ItemString Collection indexer
MergingEnabled This is used to get or set whether merging of time zone information is disabled
SyncRoot ICollection.SyncRoot implementation

Methods

AcquireReaderLock This can be used to acquire a reader lock on the collection to perform bulk read operations
AcquireWriterLock This can be used to acquire a writer lock on the collection to perform bulk updates
Add Add a VTimeZone to the collection
AddRange Add a range of VTimeZone objects from an enumerable list
Clear Remove all items from the collection
Contains Check to see if the VTimeZone object is in the collection
CopyTo Copy the VTimeZone objects to an array
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Exists Determine whether or not the collection contains at least one item that matches the conditions in the specified predicate.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Find Search the collection for the first item that matches the conditions in the specified predicate
FindAll Retrieve all of the items that match the conditions defined by the specified predicate
FindIndex(PredicateVTimeZone) Search for the first item that matches the conditions defined by the specified predicate and return its zero-based index.
FindIndex(Int32, PredicateVTimeZone) Search for the first item that matches the conditions defined by the specified predicate between the starting index and the end of the collection and return its zero-based index.
FindIndex(Int32, Int32, PredicateVTimeZone) Search for the first item that matches the conditions defined by the specified predicate between the starting index and the given number of items and return its zero-based index.
FindLast Search the collection for the last item that matches the conditions in the specified predicate
FindLastIndex(PredicateVTimeZone) Search for the last item that matches the conditions defined by the specified predicate and return its zero-based index.
FindLastIndex(Int32, PredicateVTimeZone) Search for the last item that matches the conditions defined by the specified predicate between the starting index and searching backwards to the start of the collection and return its zero-based index.
FindLastIndex(Int32, Int32, PredicateVTimeZone) Search for the last item that matches the conditions defined by the specified predicate between the starting index and searching backwards for the given number of items and return its zero-based index.
ForEach Performs the specified action on each item in the collection
GetEnumerator Get a type-safe VTimeZoneCollection enumerator
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf(String) Get the index of a VTimeZone object by its time zone ID
IndexOf(VTimeZone) Get the index of the VTimeZone object
Insert Insert a VTimeZone into the collection at the specified index
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Merge This is used to merge a time zone instance into the collection
OnTimeZoneIdChanged This raises the TimeZoneIdChanged event
PropagateVersion This is used to propagate a common version to all objects in the collection
ReleaseReaderLock This is used to free a reader lock previously acquired by calling AcquireReaderLock(Int32, Boolean)
ReleaseWriterLock This is used to free a writer lock previously acquired by calling AcquireWriterLock(Int32)
Remove Remove a VTimeZone from the collection
RemoveAll Remove all items that match the conditions defined by the specified predicate
RemoveAt Remove the item at the specified index from the collection
RemoveRange Remove the specified range of items from the collection
Sort(Boolean) This is used to sort the collection in ascending or descending order by time zone ID
Sort(ComparisonVTimeZone) Sort the items in the collection using the specified ComparisonT delegate
Sort(IComparerVTimeZone) Sort the items in the collection using the specified comparer
ToStringReturns a string that represents the current object.
(Inherited from Object)
TrueForAll Determine if every item in the collection matches the conditions defined by the specified predicate

Events

TimeZoneIdChanged This event is raised when the value of a TimeZoneId property of an item in the collection is changed.

See Also