Class IfModifiedSinceHeader
Class that represents the HTTP If-Modified-Since
header
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public class IfModifiedSinceHeader
Constructors
| Improve this Doc View SourceIfModifiedSinceHeader(DateTime)
Initializes a new instance of the IfModifiedSinceHeader class.
Declaration
public IfModifiedSinceHeader(DateTime lastWriteTimeUtc)
Parameters
Type | Name | Description |
---|---|---|
DateTime | lastWriteTimeUtc | The last time the defination was changed |
Properties
| Improve this Doc View SourceLastWriteTimeUtc
Gets the last time the definition was changed
Declaration
public DateTime LastWriteTimeUtc { get; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
| Improve this Doc View SourceIsMatch(DateTime)
Returns a value that indicates whether the lastWriteTimeUtc is past the value in the If-Modified-Since
header
Declaration
public bool IsMatch(DateTime lastWriteTimeUtc)
Parameters
Type | Name | Description |
---|---|---|
DateTime | lastWriteTimeUtc | The last write time of the entry to compare with |
Returns
Type | Description |
---|---|
Boolean | true when the lastWriteTimeUtc is past the value in the |
Parse(String)
Parses the header string to get a new instance of the IfModifiedSinceHeader class
Declaration
public static IfModifiedSinceHeader Parse(string s)
Parameters
Type | Name | Description |
---|---|---|
String | s | The header string to parse |
Returns
Type | Description |
---|---|
IfModifiedSinceHeader | The new instance of the IfModifiedSinceHeader class |