Gets the date the file was last modified
| C# | Visual Basic | Visual C++ |
public virtual DateTime GetLastModifiedDate( Uri uri )
Public Overridable Function GetLastModifiedDate ( _ uri As Uri _ ) As DateTime
public: virtual DateTime GetLastModifiedDate( Uri^ uri )
- uri (Uri)
- The file to retrieve the date for
If the server fails to return a Last Modified Date, this will return today.
For dynamic pages (aspx etc) this will return today.
| Exception | Condition |
|---|---|
| LastModifiedDateNotAvailableException | Thrown when a HTTP server does not provide a Last-Modified header. |