Language

Cache.GetAnyMatchingTag Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets a list of all cached objects in the specified region that have any of the same tags in common.

Namespace: System.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Function GetAnyMatchingTag ( _
    region As String, _
    tags As Tag() _
) As List(Of KeyValuePair(Of String, Object))
'Usage
Dim instance As Cache
Dim region As String
Dim tags As Tag()
Dim returnValue As List(Of KeyValuePair(Of String, Object))

returnValue = instance.GetAnyMatchingTag(region, tags)
public List<KeyValuePair<string,Object>> GetAnyMatchingTag (
    string region,
    Tag[] tags
)
public:
List<KeyValuePair<String^, Object^>>^ GetAnyMatchingTag (
    String^ region, 
    array<Tag^>^ tags
)
public List<KeyValuePair<String,Object>> GetAnyMatchingTag (
    String region, 
    Tag[] tags
)
public function GetAnyMatchingTag (
    region : String, 
    tags : Tag[]
) : List<KeyValuePair<String,Object>>

Parameters

  • region
    The name of the region to search. Tags are not supported outside regions. Therefore, a region name is required.
  • tags
    An array of tags for which to search

Return Value

A list of all cached objects in the specified region that have any of the same tags in common. Null is returned if no objects in the specified region have any of the tags specified.

Remarks

Cached objects returned in the list may only have some of the tags listed in the tags array parameter. If you want a list of only the objects that have all the tags listed in the tags array parameter, use GetAllMatchingTags.

Tags are supported only for objects stored in regions.

See Also

Reference

Cache Class
Cache Members
System.Data.Caching Namespace