TagExtensionsHasAllTags Method (ITaggable, String)

ScaleOut Software NamedCache API
Determines whether a cachedObject that implements ITaggable has all of the tags specified by tags.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version:

public static bool HasAllTags(
	this ITaggable cachedObject,
	params string[] tags


Type: Soss.ClientITaggable
An object that implements ITaggable that may be stored in the State Server.
Type: SystemString
A list of strings representing Tags.

Return Value

Type: Boolean
true if all tags specified in tags have previously been added to the cachedObject's tags; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITaggable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Support for Tags for an overview of using this method and the use of the ITaggable interface.

This method may also be used in where-clause expressions for evauation on the server. See Querying Tags for an overview of querying for specific tags within a LINQ where-clause.

See Also


Other Resources