EventLogSession.Dispose EventLogSession.Dispose EventLogSession.Dispose EventLogSession.Dispose Method

定義

釋放這個物件所使用的資源。Releases the resources used by this object.

多載

Dispose() Dispose() Dispose() Dispose()

釋放這個物件所使用的所有資源。Releases all the resources used by this object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放這個物件所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by this object, and optionally releases the managed resources.

Dispose() Dispose() Dispose() Dispose()

釋放這個物件所使用的所有資源。Releases all the resources used by this object.

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

實作

另請參閱

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放這個物件所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by this object, and optionally releases the managed resources.

protected:
 virtual void Dispose(bool disposing);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

參數

disposing
Boolean Boolean Boolean Boolean

true 表示會同時釋放 Managed 和 Unmanaged 資源,false 則表示只釋放 Unmanaged 資源。true to release both managed and unmanaged resources; false to release only unmanaged resources.

另請參閱

適用於