Class SharpSevenZipBase
SharpSevenZip Extractor/Compressor base class. Implements Password string, ReportErrors flag.
Inheritance
Inherited Members
Namespace: SharpSevenZip
Assembly: SharpSevenZip.dll
Syntax
public abstract class SharpSevenZipBase : MarshalByRefObject
Constructors
| Edit this page View SourceSharpSevenZipBase(string)
Initializes a new instance of the SharpSevenZipBase class.
Declaration
protected SharpSevenZipBase(string password = "")
Parameters
Type | Name | Description |
---|---|---|
string | password | The archive password. |
Fields
| Edit this page View SourceNeedsToBeRecreated
True if the instance of the class needs to be recreated in new thread context; otherwise, false.
Declaration
protected bool NeedsToBeRecreated
Field Value
Type | Description |
---|---|
bool |
Properties
| Edit this page View SourceCurrentLibraryFeatures
Gets the current library features.
Declaration
[CLSCompliant(false)]
public static LibraryFeature CurrentLibraryFeatures { get; }
Property Value
Type | Description |
---|---|
LibraryFeature |
EventSynchronization
Gets or sets the event synchronization strategy.
Declaration
public EventSynchronizationStrategy EventSynchronization { get; set; }
Property Value
Type | Description |
---|---|
EventSynchronizationStrategy |
Password
Gets or sets the archive password
Declaration
public string Password { get; protected set; }
Property Value
Type | Description |
---|---|
string |
UniqueID
Gets the unique identifier of this SharpSevenZipBase instance.
Declaration
public int UniqueID { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(object?)
Determines whether the specified System.Object is equal to the current SharpSevenZipBase.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The System.Object to compare with the current SharpSevenZipBase. |
Returns
Type | Description |
---|---|
bool | true if the specified System.Object is equal to the current SharpSevenZipBase; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current SharpSevenZipBase. |
Overrides
| Edit this page View SourceSetLibraryPath(string)
Changes the path to the 7-zip native library.
Declaration
public static void SetLibraryPath(string libraryPath)
Parameters
Type | Name | Description |
---|---|---|
string | libraryPath | The path to the 7-zip native library. |
ToString()
Returns a System.String that represents the current SharpSevenZipBase.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A System.String that represents the current SharpSevenZipBase. |