TimeZoneBuilder Structure

Provides methods for editing the TimeZones property.

Definition

Namespace: FolkerKinzel.VCards.BuilderParts
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public readonly struct TimeZoneBuilder
Inheritance
Object    ValueType    TimeZoneBuilder

Remarks

  Important

Only use this struct in conjunction with VCardBuilder!

Methods

Add(String, ActionParameterSection, FuncVCard, String) Adds a TimeZoneProperty instance, which is newly initialized using the specified String, which represents an identifier from the "IANA Time Zone Database", to the TimeZones property. (See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones .)
Add(TimeZoneID, ActionParameterSection, FuncVCard, String) Adds a TimeZoneProperty instance, which is newly initialized using the specified TimeZoneID instance, to the TimeZones property.
Clear Sets the TimeZones property to null.
Edit(FuncIEnumerableTimeZoneProperty, IEnumerableTimeZoneProperty) Edits the content of the TimeZones property with a delegate.
EditTArg(FuncIEnumerableTimeZoneProperty, TArg, IEnumerableTimeZoneProperty, TArg) Edits the content of the TimeZones property with a delegate and allows to pass an argument to this delegate.
GetTypeGets the Type of the current instance.
(Inherited from Object)
Remove Removes TimeZoneProperty objects that match a specified predicate from the TimeZones property.
SetIndexes Sets the Index properties of the items in in the TimeZones property ascending depending on their position in that collection and allows to specify whether to skip empty items in that process.
SetPreferences Sets the Preference properties of the items in the TimeZones property depending on their position in that collection and allows to specify whether to skip empty items in that process. (The first item gets the highest preference 1.)
UnsetIndexes Resets the Index properties of the items in in the TimeZones property to null.
UnsetPreferences Resets the Preference properties of the items in in the TimeZones property to the lowest value (100).

See Also