CacheParameter constructor
Instantiates a CacheParameter object.
Namespace: Microsoft.Office.Server.ObjectCache
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Sub New ( _
serviceName As String, _
objectType As String, _
maxCacheSize As ULong, _
priority As PriorityType, _
lifetime As TimeSpan _
)
'Usage
Dim serviceName As String
Dim objectType As String
Dim maxCacheSize As ULong
Dim priority As PriorityType
Dim lifetime As TimeSpan
Dim instance As New CacheParameter(serviceName, _
objectType, maxCacheSize, priority, _
lifetime)
public CacheParameter(
string serviceName,
string objectType,
ulong maxCacheSize,
PriorityType priority,
TimeSpan lifetime
)
Parameters
serviceName
Type: System.StringThe name of the calling service.
objectType
Type: System.StringThe type of object that is to be cached.
maxCacheSize
Type: System.UInt64The maximum size of the cache, in bytes.
priority
Type: Microsoft.Office.Server.ObjectCache.PriorityTypeThe default PriorityType for items in this cache.
lifetime
Type: System.TimeSpanThe default retention period for items in the cache.