SPCache.CreateMossObjectCache 方法 (String, Byte, TimeSpan, UInt64)
创建新的缓存,其中包含具有指定的类型名称的对象,并具有指定的优先级、 保留期和最大大小。
命名空间: 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 _
)
用法
Dim instance As SPCache
Dim objectTypeName As String
Dim priority As Byte
Dim retentionPeriod As TimeSpan
Dim maxBytes As ULong
instance.CreateMossObjectCache(objectTypeName, _
priority, retentionPeriod, maxBytes)
public void CreateMossObjectCache(
string objectTypeName,
byte priority,
TimeSpan retentionPeriod,
ulong maxBytes
)
参数
- objectTypeName
类型:System.String
- priority
类型:System.Byte
- retentionPeriod
类型:System.TimeSpan
- maxBytes
类型:System.UInt64