LoadFromFile Method (PITimeZoneInfos Collection)

See Also     Example     Applies To    


The LoadFromFile method loads a PITimeZoneInfo object into the system from a file.


object.LoadFromFile FileName

The LoadFromFile method syntax has these parts:

Part Description
object An object expression that evaluates to a PITimeZoneInfos collection.
FileName The path to the time zone file.


The time zone file format is binary.

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error Description
tseNOEMPTYSTRINGS Blank file path is not allowed.
tseDUPLICATENAME The time zone is already added to the local collection.
tseINVALIDTZFILE The time zone file was invalid or contained invalid data.

Enabling Operational Intelligence