MemoryCache.GetCount(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回快取中的快取項目總數。
public override long GetCount(string regionName = default);
override this.GetCount : string -> int64
Public Overrides Function GetCount (Optional regionName As String = Nothing) As Long
參數
- regionName
- String
快取中被新增快取條目的命名區域。 不要傳遞該參數的值。 這個參數是 null 預設的,因為該 MemoryCache 類別不實作區域。
傳回
快取中的條目數量。
例外狀況
regionName 不是 null。