• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpSevenZip
      • ArchiveFileInfo
      • ArchiveProperty
      • CompressionLevel
      • CompressionMethod
      • CompressionMode
      • EventSynchronizationStrategy
      • ExtractFileCallback
      • ICancellable
      • InArchiveFormat
      • LibraryFeature
      • OperationResult
      • OutArchiveFormat
      • SfxModule
      • SharpSevenZipArchiveFormat
      • SharpSevenZipBase
      • SharpSevenZipCompressor
      • SharpSevenZipExtractor
      • SharpSevenZipSfx
      • StreamWithAttributes
      • ZipEncryptionMethod
    • SharpSevenZip.EventArguments
      • ExtractFileCallbackArgs
      • ExtractFileCallbackReason
      • FileInfoEventArgs
      • FileNameEventArgs
      • FileOverwriteEventArgs
      • IntEventArgs
      • OpenEventArgs
      • PercentDoneEventArgs
      • ProgressEventArgs
    • SharpSevenZip.Exceptions
      • CompressionFailedException
      • ExtractionFailedException
      • LzmaException
      • SharpSevenZipArchiveException
      • SharpSevenZipCompressionFailedException
      • SharpSevenZipException
      • SharpSevenZipExtractionFailedException
      • SharpSevenZipInvalidFileNamesException
      • SharpSevenZipLibraryException
      • SharpSevenZipSfxValidationException
    • SharpSevenZip.Lzma
      • LzmaDecodeStream
      • LzmaEncodeStream
    • SharpSevenZip.Sdk
      • CoderPropId
      • ICodeProgress
      • ICoder
    • SharpSevenZip.Sdk.Compression.Lzma
      • Decoder
      • Encoder

    Class SharpSevenZipBase

    SharpSevenZip Extractor/Compressor base class. Implements Password string, ReportErrors flag.

    Inheritance
    object
    MarshalByRefObject
    SharpSevenZipBase
    SharpSevenZipCompressor
    SharpSevenZipExtractor
    Inherited Members
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(bool)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: SharpSevenZip
    Assembly: SharpSevenZip.dll
    Syntax
    public abstract class SharpSevenZipBase : MarshalByRefObject

    Constructors

    | Edit this page View Source

    SharpSevenZipBase(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 Source

    NeedsToBeRecreated

    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 Source

    CurrentLibraryFeatures

    Gets the current library features.

    Declaration
    [CLSCompliant(false)]
    public static LibraryFeature CurrentLibraryFeatures { get; }
    Property Value
    Type Description
    LibraryFeature
    | Edit this page View Source

    EventSynchronization

    Gets or sets the event synchronization strategy.

    Declaration
    public EventSynchronizationStrategy EventSynchronization { get; set; }
    Property Value
    Type Description
    EventSynchronizationStrategy
    | Edit this page View Source

    Password

    Gets or sets the archive password

    Declaration
    public string Password { get; protected set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    UniqueID

    Gets the unique identifier of this SharpSevenZipBase instance.

    Declaration
    public int UniqueID { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Equals(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
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    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
    object.GetHashCode()
    | Edit this page View Source

    SetLibraryPath(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.

    | Edit this page View Source

    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.

    Overrides
    object.ToString()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright (C) Markovtsev Vadim 2009, 2010, Jérémy Ansel 2024