Language
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.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The identifier that is used to distinguish the cached object in the cache or region.
Namespace: System.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)
Syntax
'Declaration
Public ReadOnly Property ObjectKey As String
'Usage
Dim instance As CacheItem
Dim value As String
value = instance.ObjectKey
public string ObjectKey { get; }
public:
property String^ ObjectKey {
String^ get ();
}
/** @property */
public String get_ObjectKey ()
public function get ObjectKey () : String
Property Value
A string value that represents the identifier that is used to distinguish the cached object in the cache or region.
Remarks
For objects stored in regions, the ObjectKey is only unique relative to other objects in that particular region. For objects not stored in regions, the ObjectKey is only unique relative to other objects not stored in regions in the same cache. Thus, the same ObjectKey can exist more than once in a cache if the additional keys are stored within different regions.
The CacheItem class is especially useful for updating tags associated with the object and concurrency operations. For more information, see Tag-Based Methods (Velocity) and Concurrency Methods (Velocity).
See Also
Reference
CacheItem Class
CacheItem Members
System.Data.Caching Namespace