MemoryCache.GetCount(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the total number of cache entries in the cache.
public override long GetCount (string regionName = default);
override this.GetCount : string -> int64
Public Overrides Function GetCount (Optional regionName As String = Nothing) As Long
Parameters
- regionName
- String
A named region in the cache to which a cache entry was added. Do not pass a value for this parameter. This parameter is null
by default, because the MemoryCache class does not implement regions.
Returns
The number of entries in the cache.
Exceptions
regionName
is not null
.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.