Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Include Protected Members
Include Inherited Members
Represents an instance of an object in a cache, along with metadata related to expiration, size, hit count, expiration, and parent-child relationships.
The SPCachedObject type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
SPCachedObject() | Instantiates an SPCachedObject as a wrapper that contains no object and default metadata. |
![]() |
SPCachedObject(String, Object, TimeSpan) | Instantiates an SPCachedObject that contains the specified object and that has the specified identifier and expiration TimeSpan properties. |
![]() |
SPCachedObject(String, Object, List<KeyValuePair>, TimeSpan) | Instantiates an SPCachedObject that contains the specified object and that has the specified identifier, index key-value pair, and expiration TimeSpan properties. |
![]() |
SPCachedObject(String, Object, String, TimeSpan) | Instantiates an SPCachedObject that contains the specified object and that has the specified identifier, expiration TimeSpan and parent identifier properties. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Data | Gets or sets the object that is being cached. |
![]() |
ExpireAfter | Gets or sets the expiration DateTime. |
![]() |
HitCountRead | Gets the number of read operations on the current SPCachedObject. |
![]() |
HitCountWrite | Gets the number of write operations on the current SPCachedObject. |
![]() |
Id | Gets or sets the unique identifier of the current SPCachedObject. |
![]() |
IndexValues | Gets or sets a list of KeyValuePair objects that specify index key-value pairs that can be used to access this object from the cache. |
![]() |
LastUpdateTime | Gets the latest time when the current SPCachedObject was updated. |
![]() |
ObjectTypeName | Gets the user-specified type name of the object that is being cached. |
![]() |
ParentID | Gets or sets the identifier of the parent SPCachedObject for the current SPCachedObject. |
![]() |
SizeBytes | Gets an approximate size of the current object that is being cached. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Copy | Creates and returns a copy of the current SPCachedObject. |
![]() |
ToString | Returns the identifier of the current SPCachedObject as a String. (Overrides Object.ToString().) |
Top
.gif)
.gif)