MemoryCache.GetCount(String) 方法

定義

傳回快取中的快取項目總數。

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

適用於