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
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");
Tag(String)
Initializes a new instance of Tag class.
Declaration
public Tag(string tag)
Parameters
Type | Name | Description |
---|---|---|
System.String | tag |
TagName
Gets the string based tag name.
Declaration
public string TagName { get; }
Property Value
Type | Description |
---|---|
System.String |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
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 |
Overrides
System.Object.GetHashCode()
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 |
Overrides
System.Object.ToString()