Remove Method (PITimeZoneInfos Collection)


    Example     Applies To    

 

The Remove method removes a PITimeZoneInfo  object from permanent storage on this system.

Syntax

object.Remove ZoneID

The Remove method syntax has these parts:

Part Description
object  An object expression that evaluates to a PITimeZoneInfos collection.
ZoneID The time zone name (ZoneRulesName) or UID (ZoneID) to remove.

Remarks

If a DeviceZoneName references a TimeZoneInfo ZoneID (UID) the tseINUSE error is returned. It is not an error if if a TimeZoneInfo ZoneRulesName is referenced by a DeviceZoneName.

Trappable Errors

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

Error Description
tseNAMENOTFOUND The passed ZoneID was not found.
tseINUSE The time zone was referenced by a DeviceZone and could not be removed.

Enabling Operational Intelligence