Gets or sets the last time the entry in the zip archive was changed.
Assembly: System.IO.Compression (in System.IO.Compression.dll)
The attempt to set this property failed, because the zip archive for the entry is in Read mode.
The archive mode is set to Create.
- or -
The archive mode is set to Update and the entry has been opened.
An attempt was made to set this property to a value that is either earlier than 1980 January 1 0:00:00 (midnight) or later than 2107 December 31 23:59:58 (one second before midnight).
When you create a new entry from an existing file by calling the CreateEntryFromFile method, the property for the entry is automatically set to the last time the file was modified. When you create a new entry programmatically by calling the CreateEntry method, the property for the entry is automatically set to the time of execution. If you modify the entry, you must explicitly set the property if you want the value to reflect the time of the latest change.
When you set this property, the DateTimeOffset value is converted to a timestamp format that is specific to zip archives. This format supports a resolution of two seconds. The earliest permitted value is 1980 January 1 0:00:00 (midnight). The latest permitted value is 2107 December 31 23:59:58 (one second before midnight). If the value for the last write time is not valid, the property returns a default value of 1980 January 1 0:00:00 (midnight).