Share via


DataCacheItem.Tags Property

A generic list of tags associated with the cached object.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in microsoft.applicationserver.caching.core.dll)

Usage

'Usage
Dim instance As DataCacheItem
Dim value As ReadOnlyCollection(Of DataCacheTag)

value = instance.Tags

Syntax

'Declaration
Public ReadOnly Property Tags As ReadOnlyCollection(Of DataCacheTag)
public ReadOnlyCollection<DataCacheTag> Tags { get; }
public:
property ReadOnlyCollection<DataCacheTag^>^ Tags {
    ReadOnlyCollection<DataCacheTag^>^ get ();
}
/** @property */
public ReadOnlyCollection<DataCacheTag> get_Tags ()
public function get Tags () : ReadOnlyCollection<DataCacheTag>

Property Value

An generic list of DataCacheTag objects associated with the cached object.

Remarks

You can associate one or more tags to each cache object. Tag-based object retrieval is only available for those objects stored in regions. For more information, see Tag-Based Methods (Velocity).

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.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCacheItem Class
DataCacheItem Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26