SPCache.CreateMossObjectCache - Méthode (String, Byte, TimeSpan, UInt64)
Crée un nouveau cache qui contient des objets avec le nom de type spécifié et qui possède la priorité spécifiée, la période de rétention et la taille maximale.
Espace de noms : Microsoft.Office.Server.ObjectCache
Assembly : Microsoft.Office.Server (dans Microsoft.Office.Server.dll)
Syntaxe
'Déclaration
Public Sub CreateMossObjectCache ( _
objectTypeName As String, _
priority As Byte, _
retentionPeriod As TimeSpan, _
maxBytes As ULong _
)
'Utilisation
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
)
Paramètres
- objectTypeName
Type : System.String
- priority
Type : System.Byte
- retentionPeriod
Type : System.TimeSpan
- maxBytes
Type : System.UInt64