Class StreamWithAttributes
Associates a Stream with optional file-time attributes for use in archive compression.
Implements
Inherited Members
Namespace: SharpSevenZip
Assembly: SharpSevenZip.dll
Syntax
public record StreamWithAttributes : IEquatable<StreamWithAttributes>
Constructors
| Edit this page View SourceStreamWithAttributes(Stream, DateTime?, DateTime?, DateTime?)
Associates a Stream with optional file-time attributes for use in archive compression.
Declaration
public StreamWithAttributes(Stream Stream, DateTime? CreationTime = null, DateTime? LastWriteTime = null, DateTime? LastAccessTime = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | Stream | The stream containing the file data to compress. |
| DateTime? | CreationTime | The creation time to store in the archive, or |
| DateTime? | LastWriteTime | The last-write time to store in the archive, or |
| DateTime? | LastAccessTime | The last-access time to store in the archive, or |
Properties
| Edit this page View SourceCreationTime
The creation time to store in the archive, or null to omit.
Declaration
public DateTime? CreationTime { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
LastAccessTime
The last-access time to store in the archive, or null to omit.
Declaration
public DateTime? LastAccessTime { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
LastWriteTime
The last-write time to store in the archive, or null to omit.
Declaration
public DateTime? LastWriteTime { get; init; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Stream
The stream containing the file data to compress.
Declaration
public Stream Stream { get; init; }
Property Value
| Type | Description |
|---|---|
| Stream |