AuthenticatedStream.DisposeAsync 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.
Asynchronously releases the unmanaged and managed resources used by the AuthenticatedStream.
public:
override System::Threading::Tasks::ValueTask DisposeAsync();
public override System.Threading.Tasks.ValueTask DisposeAsync ();
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Overrides Function DisposeAsync () As ValueTask
Returns
A task that represents the asynchronous dispose operation.
Remarks
This method allows performing resource-intensive dispose operations without blocking the main thread.
This method also disposes the inner stream when LeaveInnerStreamOpen is false
; otherwise, the inner stream is just flushed.
Calling DisposeAsync
allows the resources used by the AuthenticatedStream to be reallocated for other purposes. For more information, see Cleaning Up Unmanaged Resources.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru