Class IfUnmodifiedSinceHeader
Class that represents the HTTP If-Unmodified-Since
header
Inherited Members
Namespace:FubarDev.WebDavServer.Model.Headers
Assembly:FubarDev.WebDavServer.dll
Syntax
public class IfUnmodifiedSinceHeader
Constructors
| Improve this Doc View SourceIfUnmodifiedSinceHeader(DateTime)
Initializes a new instance of the IfUnmodifiedSinceHeader class.
Declaration
public IfUnmodifiedSinceHeader(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 not past the value in the If-Unmodified-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 not past the value in the |
Parse(String)
Parses the header string to get a new instance of the IfUnmodifiedSinceHeader class
Declaration
public static IfUnmodifiedSinceHeader Parse(string s)
Parameters
Type | Name | Description |
---|---|---|
String | s | The header string to parse |
Returns
Type | Description |
---|---|
IfUnmodifiedSinceHeader | The new instance of the IfUnmodifiedSinceHeader class |