Cache<TKey,TValue> Constructor(Int32,IEqualityComparer<TKey>,TimeSpan,Func<TKey,TValue,Boolean>)
See Also 
SourceCode.Caching Namespace > Cache<TKey,TValue> Class > Cache<TKey,TValue> Constructor : Cache<TKey,TValue> Constructor(Int32,IEqualityComparer<TKey>,TimeSpan,Func<TKey,TValue,Boolean>)



capacity
comparer
checkExpiredInterval
isExpiredFunction

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal capacity As Integer, _
   ByVal comparer As IEqualityComparer(Of TKey), _
   ByVal checkExpiredInterval As TimeSpan, _
   ByVal isExpiredFunction As Func(Of TKey,TValue,Boolean) _
)
Visual Basic (Usage) Copy Code
Dim capacity As Integer
Dim comparer As IEqualityComparer(Of TKey)
Dim checkExpiredInterval As TimeSpan
Dim isExpiredFunction As Func(Of TKey,TValue,Boolean)
 
Dim instance As New Cache(Of TKey,TValue)(capacity, comparer, checkExpiredInterval, isExpiredFunction)

Parameters

capacity
comparer
checkExpiredInterval
isExpiredFunction

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also