Struct ArchiveFileInfo
Struct for storing information about files in the 7-zip archive.
Inherited Members
Namespace: SharpSevenZip
Assembly: SharpSevenZip.dll
Syntax
public struct ArchiveFileInfo
Properties
| Edit this page View SourceAttributes
Gets or sets file attributes.
Declaration
[CLSCompliant(false)]
public uint Attributes { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
Comment
Gets or sets comment for the file.
Declaration
public string Comment { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Crc
Gets or sets CRC checksum of the file.
Declaration
[CLSCompliant(false)]
public uint Crc { readonly get; set; }
Property Value
Type | Description |
---|---|
uint |
CreationTime
Gets or sets the file creation time.
Declaration
public DateTime CreationTime { readonly get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Encrypted
Gets or sets being encrypted.
Declaration
public bool Encrypted { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
FileName
Gets or sets file name
Declaration
public string FileName { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Index
Gets or sets index of the file in the archive file table.
Declaration
[CLSCompliant(false)]
public int Index { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
IsDirectory
Gets or sets being a directory.
Declaration
public bool IsDirectory { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
LastAccessTime
Gets or sets the file creation time.
Declaration
public DateTime LastAccessTime { readonly get; set; }
Property Value
Type | Description |
---|---|
DateTime |
LastWriteTime
Gets or sets the file last write time.
Declaration
public DateTime LastWriteTime { readonly get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Method
Compression method for the file.
Declaration
public string Method { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Size
Gets or sets size of the file (unpacked).
Declaration
[CLSCompliant(false)]
public ulong Size { readonly get; set; }
Property Value
Type | Description |
---|---|
ulong |
Methods
| Edit this page View SourceEquals(ArchiveFileInfo)
Determines whether the specified ArchiveFileInfo is equal to the current ArchiveFileInfo.
Declaration
public readonly bool Equals(ArchiveFileInfo afi)
Parameters
Type | Name | Description |
---|---|---|
ArchiveFileInfo | afi | The ArchiveFileInfo to compare with the current ArchiveFileInfo. |
Returns
Type | Description |
---|---|
bool | true if the specified ArchiveFileInfo is equal to the current ArchiveFileInfo; otherwise, false. |
Equals(object?)
Determines whether the specified System.Object is equal to the current ArchiveFileInfo.
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The System.Object to compare with the current ArchiveFileInfo. |
Returns
Type | Description |
---|---|
bool | true if the specified System.Object is equal to the current ArchiveFileInfo; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as a hash function for a particular type.
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current ArchiveFileInfo. |
Overrides
| Edit this page View SourceToString()
Returns a System.String that represents the current ArchiveFileInfo.
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
string | A System.String that represents the current ArchiveFileInfo. |
Overrides
Operators
| Edit this page View Sourceoperator ==(ArchiveFileInfo, ArchiveFileInfo)
Determines whether the specified ArchiveFileInfo instances are considered equal.
Declaration
public static bool operator ==(ArchiveFileInfo afi1, ArchiveFileInfo afi2)
Parameters
Type | Name | Description |
---|---|---|
ArchiveFileInfo | afi1 | The first ArchiveFileInfo to compare. |
ArchiveFileInfo | afi2 | The second ArchiveFileInfo to compare. |
Returns
Type | Description |
---|---|
bool | true if the specified ArchiveFileInfo instances are considered equal; otherwise, false. |
operator !=(ArchiveFileInfo, ArchiveFileInfo)
Determines whether the specified ArchiveFileInfo instances are not considered equal.
Declaration
public static bool operator !=(ArchiveFileInfo afi1, ArchiveFileInfo afi2)
Parameters
Type | Name | Description |
---|---|---|
ArchiveFileInfo | afi1 | The first ArchiveFileInfo to compare. |
ArchiveFileInfo | afi2 | The second ArchiveFileInfo to compare. |
Returns
Type | Description |
---|---|
bool | true if the specified ArchiveFileInfo instances are not considered equal; otherwise, false. |