SPCache.CreateMossObjectCache 方法 (String, Byte, TimeSpan, UInt64, Boolean)
创建新的缓存,其中包含具有指定的类型名称的对象,并具有指定的优先级、 保留期、 最大大小和过期策略。
命名空间: Microsoft.Office.Server.ObjectCache
程序集: Microsoft.Office.Server(位于 Microsoft.Office.Server.dll 中)
语法
声明
Public Sub CreateMossObjectCache ( _
objectTypeName As String, _
priority As Byte, _
retentionPeriod As TimeSpan, _
maxBytes As ULong, _
expireRecursively As Boolean _
)
用法
Dim instance As SPCache
Dim objectTypeName As String
Dim priority As Byte
Dim retentionPeriod As TimeSpan
Dim maxBytes As ULong
Dim expireRecursively As Boolean
instance.CreateMossObjectCache(objectTypeName, _
priority, retentionPeriod, maxBytes, _
expireRecursively)
public void CreateMossObjectCache(
string objectTypeName,
byte priority,
TimeSpan retentionPeriod,
ulong maxBytes,
bool expireRecursively
)
参数
- objectTypeName
类型:System.String
- priority
类型:System.Byte
- retentionPeriod
类型:System.TimeSpan
- maxBytes
类型:System.UInt64
expireRecursively
类型:System.Boolean一个布尔值,用于确定是否父对象过期时,子对象将过期。