AspNetMemoryMonitor AspNetMemoryMonitor AspNetMemoryMonitor AspNetMemoryMonitor Class

定義

記憶體監視器的 ASP.NET 預設實作。ASP.NET default implementation of memory monitor.

public ref class AspNetMemoryMonitor sealed : IDisposable, IObservable<System::Web::Hosting::LowPhysicalMemoryInfo ^>, IObservable<System::Web::Hosting::RecycleLimitInfo ^>, System::Web::Hosting::IApplicationMonitor
public sealed class AspNetMemoryMonitor : IDisposable, IObservable<System.Web.Hosting.LowPhysicalMemoryInfo>, IObservable<System.Web.Hosting.RecycleLimitInfo>, System.Web.Hosting.IApplicationMonitor
type AspNetMemoryMonitor = class
    interface IApplicationMonitor
    interface IDisposable
    interface IObservable<RecycleLimitInfo>
    interface IObservable<LowPhysicalMemoryInfo>
Public NotInheritable Class AspNetMemoryMonitor
Implements IApplicationMonitor, IDisposable, IObservable(Of LowPhysicalMemoryInfo), IObservable(Of RecycleLimitInfo)
繼承
AspNetMemoryMonitorAspNetMemoryMonitorAspNetMemoryMonitorAspNetMemoryMonitor
實作

屬性

DefaultLowPhysicalMemoryObserver DefaultLowPhysicalMemoryObserver DefaultLowPhysicalMemoryObserver DefaultLowPhysicalMemoryObserver

取得或設定預設記憶體不足的觀察者。Gets or sets the default low-memory observer. 設定此屬性會取消訂閱之前已存在的 'default' 觀察者。Setting this property unsubscribes the 'default' observer that was there before. 只能有一個 'default'。There can only be one 'default.' 若要提供額外的觀察者,請使用 Subscribe 方法。To provide additional observers, use the Subscribe method.

DefaultRecycleLimitObserver DefaultRecycleLimitObserver DefaultRecycleLimitObserver DefaultRecycleLimitObserver

取得或設定預設的回收限制觀察者。Gets or sets the default recycle limit observer. 設定此屬性會取消訂閱之前已存在的 'default' 觀察者。Setting this property unsubscribes the 'default' observer that was there before. 只能有一個 'default'。There can only be one 'default.' 若要提供額外的觀察者,請使用 Subscribe 方法。To provide additional observers, use the Subscribe method.

方法

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

釋放記憶體監視器所使用的所有資源。Releases all resources used by the memory monitor.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Start() Start() Start() Start()

開始監視和引發通知。Start monitoring and firing notifications.

Stop() Stop() Stop() Stop()

停止監視和引發通知。Stop monitoring and firing notifications.

Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>)

訂閱除了預設記憶體不足觀察者以外的記憶體不足觀察器。Subscribes a low-memory observer in addition to the default low-memory observer.

Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>)

訂閱除了預設回收限制觀察者以外的回收限制觀察器。Subscribes a recycle limit observer in addition to the default recycle limit observer.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於