LastModified Property

HttpWebResponse.LastModified Property

 

Gets the last date and time that the contents of the response were modified.

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

member LastModified : DateTime with get

Property Value

Type: System.DateTime

A DateTime that contains the date and time that the contents of the response were modified.

Exception Condition
ObjectDisposedException

The current instance has been disposed.

The LastModified property contains the value of the Last-Modified header received with the response. The date and time are assumed to be local time.

This example creates an HttpWebRequest and queries for a response. This example then checks whether the entity requested had been modified any time today.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft