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.String
The name of the calling service.
- objectType
Type: System.String
The type of object that is to be cached.
- maxCacheSize
Type: System.UInt64
The maximum size of the cache, in bytes.
- priority
Type: Microsoft.Office.Server.ObjectCache.PriorityType
The default PriorityType for items in this cache.
- lifetime
Type: System.TimeSpan
The default retention period for items in the cache.