Language

Tag Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Represents an optional string-based identifier that you can associate with a cached object.

Namespace: System.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)

Syntax

'Declaration
<SerializableAttribute> _
<DataContractAttribute(Name:="Tag", Namespace:="https://schemas.microsoft.com/velocity/namespace")> _
Public Class Tag
'Usage
Dim instance As Tag
[SerializableAttribute] 
[DataContractAttribute(Name="Tag", Namespace="https://schemas.microsoft.com/velocity/namespace")] 
public class Tag
[SerializableAttribute] 
[DataContractAttribute(Name=L"Tag", Namespace=L"https://schemas.microsoft.com/velocity/namespace")] 
public ref class Tag
/** @attribute SerializableAttribute() */ 
/** @attribute DataContractAttribute(Name="Tag", Namespace="https://schemas.microsoft.com/velocity/namespace") */ 
public class Tag
SerializableAttribute 
DataContractAttribute(Name="Tag", Namespace="https://schemas.microsoft.com/velocity/namespace") 
public class Tag

Remarks

You can associate one or more tags to each cache object. Tag-based object retrieval is only available for those objects stored in explicitly-created regions.

Inheritance Hierarchy

System.Object
  System.Data.Caching.Tag

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

Tag Members
System.Data.Caching Namespace