共用方式為


SPSiteCollectionPropertyCache Class

A thread-safe cache that may be used to store very small amounts of data associated with this [Microsoft.SharePoint.SPSite]. Fetch an instance from [Microsoft.SharePoint.SPSite.Cache].

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPSiteCollectionPropertyCache

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPSiteCollectionPropertyCache
'Usage
Dim instance As SPSiteCollectionPropertyCache
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPSiteCollectionPropertyCache

Remarks

The cache is stored in memory and will be emptied during the next process recycle. Cache entries can be removed during site deletion but object invalidation is not assured. A process recycle may be required to invalidate cached entries. It is critical that only very small values are placed in the cache because the cache has no flush mechanism.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPSiteCollectionPropertyCache Members

Microsoft.SharePoint.Administration Namespace