MemoryCacheStatistics.CurrentEstimatedSize 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得目前記憶體快取中所有 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 。 常見的 MemoryCache 實作會在快取設定 SizeLimit 時追蹤大小。