Share via


ZipArchiveEntry.LastWriteTime Property

The last write time of the entry as stored in the Zip archive. When setting this property, the DateTime will be converted to the Zip timestamp format, which supports a resolution of two seconds. If the data in the last write time field is not a valid Zip timestamp, an indicator value of 1980 January 1 at midnight will be returned.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Property LastWriteTime As DateTimeOffset
public DateTimeOffset LastWriteTime { get; set; }
public:
property DateTimeOffset LastWriteTime {
    DateTimeOffset get ();
    void set (DateTimeOffset value);
}
member LastWriteTime : DateTimeOffset with get, set
function get LastWriteTime () : DateTimeOffset 
function set LastWriteTime (value : DateTimeOffset)

Property Value

Type: System.DateTimeOffset
Returns DateTimeOffset.

Exceptions

Exception Condition
NotSupportedException

An attempt to set this property was made, but the ZipArchive that this entry belongs to was opened in read-only mode.

ArgumentOutOfRangeException

A try was made to set this property to a value that cannot be represented in the Zip timestamp format. The earliest date/time that can be represented is 1980 January 1 0:00:00 (midnight), and the last date/time that can be represented is 2107 December 31 23:59:58 (one second before midnight).

.NET Framework Security

See Also

Reference

ZipArchiveEntry Class

Microsoft.TeamFoundation.Framework.Server Namespace