MemoryCacheStatistics.CurrentEstimatedSize 屬性

定義

取得目前記憶體快取中所有 Size 值的估計總和。

public:
 property Nullable<long> CurrentEstimatedSize { Nullable<long> get(); void set(Nullable<long> value); };
public long? CurrentEstimatedSize { get; init; }
member this.CurrentEstimatedSize : Nullable<int64> with get, set
Public Property CurrentEstimatedSize As Nullable(Of Long)

屬性值

如果未追蹤大小,則傳 null 回 。 每當快取上設定 SizeLimit 時,常見的 MemoryCache 實作會追蹤大小。

適用於