FtpWebResponse.LastModified Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the date and time that a file on an FTP server was last modified.

Namespace:   System.Net
Assembly:  System (in System.dll)

member LastModified : DateTime with get

Property Value

Type: System.DateTime

A DateTime that contains the last modified date and time for a file.

The LastModified property returns the data requested by the GetDateTimestamp method. For requests sent using any other method, LastModified returns MinValue.

The following code example displays the date and time that a file on an FTP server was last modified.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: