Class Tag
Represents an string based identifier that can be associated with the cache items so that they are logically grouped together and can be retrieved efficiently.
Inheritance
System.Object
Tag
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class Tag : object
Remarks
/// This Feature is Not Available in Express One or more tags can be associated with each cache item.
Examples
To create an instance of Tag class you can use code as follows:
Tag tag = new Tag("Alpha");
Constructors
Tag(String)
Initializes a new instance of Tag class.
Declaration
public Tag(string tag)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag |
Properties
TagName
Gets the string based tag name.
Declaration
public string TagName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Examples
To create an instance of Tag class you can use code as follows:
Tag tag = new Tag("Alpha");
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Examples
To create an instance of Tag class you can use code as follows:
Tag tag = new Tag("Alpha");
ToString()
String representation of the tag class.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |