Class NTTaggedData
Class handling NT date time values.
Inheritance
Implements
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class NTTaggedData : ITaggedData
Properties
| Improve this Doc View SourceCreateTime
Get /set the System.DateTime
Declaration
public DateTime CreateTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
LastAccessTime
Get /set the System.DateTime.
Declaration
public DateTime LastAccessTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
LastModificationTime
Get/set the System.DateTime.
Declaration
public DateTime LastModificationTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
TagID
Get the ID for this tagged data value.
Declaration
public ushort TagID { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceGetData()
Get the binary data representing this instance.
Declaration
public byte[] GetData()
Returns
Type | Description |
---|---|
System.Byte[] | The raw binary data representing this instance. |
IsValidValue(DateTime)
Test a System.DateTime
Declaration
public static bool IsValidValue(DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | value | The System.DateTime to test. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the value is valid and can be represented; false if not. |
Remarks
NTFS filetimes are 64-bit unsigned integers, stored in Intel (least significant byte first) byte order. They determine the number of 1.0E-07 seconds (1/10th microseconds!) past WinNT "epoch", which is "01-Jan-1601 00:00:00 UTC". 28 May 60056 is the upper limit
SetData(Byte[], Int32, Int32)
Set the data from the raw values provided.
Declaration
public void SetData(byte[] data, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The raw data to extract values from. |
System.Int32 | index | The index to start extracting values from. |
System.Int32 | count | The number of bytes available. |