Class ExtractFileCallbackArgs
The arguments passed to Extract
Inherited Members
Namespace: SharpSevenZip .EventArguments
Assembly: SharpSevenZip.dll
Syntax
public class ExtractFileCallbackArgs : EventArgs
Remarks
For each file, Extract
Constructors
| Edit this page View SourceExtractFileCallbackArgs(ArchiveFileInfo)
Initializes a new instance of the Extract
Declaration
public ExtractFileCallbackArgs(ArchiveFileInfo archiveFileInfo)
Parameters
Type | Name | Description |
---|---|---|
Archive |
archiveFileInfo | The information about file in the archive. |
Properties
| Edit this page View SourceArchiveFileInfo
Information about file in the archive.
Declaration
public ArchiveFileInfo ArchiveFileInfo { get; }
Property Value
Type | Description |
---|---|
Archive |
Information about file in the archive. |
CancelExtraction
Gets or sets a value indicating whether to cancel the extraction.
Declaration
public bool CancelExtraction { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Exception
The exception that occurred during extraction.
Declaration
public Exception? Exception { get; set; }
Property Value
Type | Description |
---|---|
Exception | The _Exception. |
Remarks
If the callback is called with Reason set to Failure,
this member contains the _Exception that occurred.
The default behavior is to rethrow the _Exception after return of the callback.
However the callback can set Exception to null
to swallow the _Exception
and continue extraction with the next file.
ExtractToFile
Gets or sets whether and where to extract the file.
Declaration
public string? ExtractToFile { get; set; }
Property Value
Type | Description |
---|---|
string | The path where to extract the file to. |
Remarks
If Extract
ExtractToStream
Gets or sets whether and where to extract the file.
Declaration
public Stream? ExtractToStream { get; set; }
Property Value
Type | Description |
---|---|
Stream | The the extracted data is written to. |
Remarks
If both this member and Extractnull
(the defualt), the file
will not be extracted and the callback will be be executed a second time with the Reason
set to Done or Failure.
ObjectData
Gets or sets any data that will be preserved between the Start callback call and the Done or Failure calls.
Declaration
public object? ObjectData { get; set; }
Property Value
Type | Description |
---|---|
object | The data. |
Reason
The reason for calling Extract
Declaration
public ExtractFileCallbackReason Reason { get; }
Property Value
Type | Description |
---|---|
Extract |
The reason. |
Remarks
If neither Extract