Calendar ObjectAdd Time Zone If Used Method
This helper method can be used to add a time zone ID to the string collection when one is used on the
passed property.
Definition
Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
protected static void AddTimeZoneIfUsed(
BaseDateTimeProperty dateProp,
StringCollection timeZoneIds
)VB
Protected Shared Sub AddTimeZoneIfUsed (
dateProp As BaseDateTimeProperty,
timeZoneIds As StringCollection
)C++
protected:
static void AddTimeZoneIfUsed(
BaseDateTimeProperty^ dateProp,
StringCollection^ timeZoneIds
)F#
static member AddTimeZoneIfUsed :
dateProp : BaseDateTimeProperty *
timeZoneIds : StringCollection -> unit Parameters
- dateProp BaseDateTimeProperty
- The date/time property to check.
- timeZoneIds StringCollection
- The string collection to which the time zone ID is added if there is one on the date/time property and it is not already in the collection.
Remarks
If the date/time property has no time zone ID or if it is set to MinValue,
the collection is not modified.