EventLogWatcher.Dispose 方法

定義

釋放這個物件所使用的資源。

多載

Dispose()

釋放這個物件所使用的所有資源。

Dispose(Boolean)

釋放這個物件所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Dispose()

來源:
EventLogWatcher.cs
來源:
EventLogWatcher.cs
來源:
EventLogWatcher.cs

釋放這個物件所使用的所有資源。

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

實作

另請參閱

適用於

Dispose(Boolean)

來源:
EventLogWatcher.cs
來源:
EventLogWatcher.cs
來源:
EventLogWatcher.cs

釋放這個物件所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

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

參數

disposing
Boolean

true 表示釋放 Managed 和 Unmanaged 資源,false 則表示只釋放 Unmanaged 資源。

屬性

另請參閱

適用於