Share via


NewPSSessionCommand.Dispose Method

Definition

Overloads

Dispose()

Dispose method of IDisposable. Gets called in the following cases: 1. Pipeline explicitly calls dispose on cmdlets 2. Called by the garbage collector.

Dispose(Boolean)

Internal dispose method which does the actual dispose operations and finalize suppressions.

Dispose()

Dispose method of IDisposable. Gets called in the following cases: 1. Pipeline explicitly calls dispose on cmdlets 2. Called by the garbage collector.

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

Implements

Applies to

Dispose(Boolean)

Internal dispose method which does the actual dispose operations and finalize suppressions.

protected:
 void Dispose(bool disposing);
protected:
 void Dispose(bool disposing);
void Dispose(bool disposing);
protected void Dispose (bool disposing);
member this.Dispose : bool -> unit
Protected Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean

Whether method is called from Dispose or destructor

Applies to