Key Property
Skjul indholdsfortegnelsen
Vis indholdsfortegnelsen
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

DataCacheItem.Key Property

 

The identifier that is used to distinguish the cached object in the cache or region.

Namespace:   Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Core (in Microsoft.ApplicationServer.Caching.Core.dll)

public string Key { get; }

Property Value

Type: System.String

A string value that represents the identifier that is used to distinguish the cached object in the cache or region.

For objects stored in regions, the Key is only unique relative to other objects in that particular region. For objects not stored in regions, the Key is only unique relative to other objects not stored in regions in the same cache. The same Key can exist more than once in a cache if the additional keys are stored within different regions.

The DataCacheItem class is especially useful for updating tags associated with the object and concurrency operations. Tags are not supported in Windows Azure Shared Caching.

Return to top
Vis:
© 2016 Microsoft