Assembly: soss_namedcache (in soss_namedcache.dll) Version: 220.127.116.11
public static bool HasAnyTag( this ITaggable cachedObject, IEnumerable<string> tags )
<ExtensionAttribute> Public Shared Function HasAnyTag ( cachedObject As ITaggable, tags As IEnumerable(Of String) ) As Boolean
- Type: Soss.ClientITaggable
The cached object to check.
- Type: System.Collections.GenericIEnumerableString
The tags to look for.
Return ValueType: Boolean
true if cachedObject has any of the tags specified by tags set; otherwise, false.
Usage NoteIn 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).
This overload allows more generality in how the list of tags are specified as compared with HasAnyTag(ITaggable, String) and is useful if you happen to have the list of tags to check in a data structure other than an array of strings. Otherwise, this method operates identically as HasAnyTags.
This method may also be used in where-clause expressions for evaluation on the server. See Querying Tags for an overview of querying for specific tags within a LINQ where-clause.