TarReader.Dispose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om