Gets the date the file was last modified
Declaration Syntax
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 )
Parameters
- uri (Uri)
- The file to retrieve the date for
Remarks
If the server fails to return a Last Modified Date, this will return today.
Remarks
For dynamic pages (aspx etc) this will return today.
Exceptions
Exception | Condition |
---|---|
LastModifiedDateNotAvailableException | Thrown when a HTTP server does not provide a Last-Modified header. |