Redigera

Dela via


TarReader.Dispose Method

Definition

Disposes the current TarReader instance, and disposes the streams of all the entries that were read from the archive if the leaveOpen argument was set to false in the constructor.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Remarks

The DataStream property of any entry can be replaced with a new stream. If the user decides to replace it on a TarEntry instance that was obtained using a TarReader, the underlying stream gets disposed immediately, freeing the TarReader of origin from the responsibility of having to dispose it.

Applies to