Removes the cached objects that have any of the same tags in common.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)

Syntax

C#
public virtual void RemoveByAnyTag(
	Tag[] tags
)
Visual Basic
Public Overridable Sub RemoveByAnyTag ( _
	tags As Tag() _
)
Visual C++
public:
virtual void RemoveByAnyTag(
	array<Tag^>^ tags
)

Parameters

tags
Type: array<Alachisoft.NCache.Runtime.Caching..::..Tag>[]()[][]
An array of Tag to search with.

Examples

The following example demonstrates how to remove the objects that have any of the specified tags in common.
CopyC#
Cache cache = NCache.InitializeCache("myCache");
Tag[] tags = new Tag[2];
tags[0] = new Tag("Alpha");
tags[1] = new Tag("Beta");
cache.RemoveByTag(tags);

See Also