Xceed .NET Libraries Documentation
Xceed.Compression Assembly / Xceed.Compression Namespace / ZCryptStream Class


In This Topic
    ZCryptStream Class
    In This Topic
    Pass-through stream that performs decryption or encryption on the data read from or written to an inner stream respectively.
    Syntax
    'Declaration
     
    
    Public Class ZCryptStream 
       Inherits System.IO.Stream
       Implements System.IDisposable 
    'Usage
     
    
    Dim instance As ZCryptStream
    public class ZCryptStream : System.IO.Stream, System.IDisposable  
    Remarks
    By default, closing the ZCryptStream will also close the inner stream. This behavior can be modified by setting the Transient property to true.
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.IO.Stream
             Xceed.Compression.ZCryptStream

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Pass-through stream that performs decryption or encryption on the data read from or written to an inner stream respectively.  
    Top
    Public Properties
     NameDescription
    Public PropertyOverridden. When overridden in a derived class, gets a value indicating whether the current stream supports reading.  
    Public PropertyOverridden. When overridden in a derived class, gets a value indicating whether the current stream supports seeking.  
    Public Property (Inherited from System.IO.Stream)
    Public PropertyOverridden. When overridden in a derived class, gets a value indicating whether the current stream supports writing.  
    Public PropertyOverridden. When overridden in a derived class, gets the length in bytes of the stream.  
    Public PropertyOverridden. When overridden in a derived class, gets or sets the position within the current stream.  
    Public Property (Inherited from System.IO.Stream)
    Public PropertyDetermines whether this stream is responsible for closing the inner stream or not.  
    Public Property (Inherited from System.IO.Stream)
    Top
    Public Methods
     NameDescription
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Releases the unmanaged resources used by the System.IO.Stream and optionally releases the managed resources.  
    Public Method (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodOverridden. When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverridden. When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Public MethodOverridden. When overridden in a derived class, sets the position within the current stream.  
    Public MethodOverridden. When overridden in a derived class, sets the length of the current stream.  
    Public MethodOverridden. When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.  
    Public MethodOverloaded.  (Inherited from System.IO.Stream)
    Public Method (Inherited from System.IO.Stream)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from System.IO.Stream)
    Protected MethodAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected Method (Inherited from System.IO.Stream)
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also