Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets an enumerator 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 GetAnyEnumerator ( _
region As String, _
tags As Tag() _
) As IEnumerator(Of KeyValuePair(Of String, Object))
'Usage
Dim instance As Cache
Dim region As String
Dim tags As Tag()
Dim returnValue As IEnumerator(Of KeyValuePair(Of String, Object))
returnValue = instance.GetAnyEnumerator(region, tags)
public IEnumerator<KeyValuePair<string,Object>> GetAnyEnumerator (
string region,
Tag[] tags
)
public:
IEnumerator<KeyValuePair<String^, Object^>>^ GetAnyEnumerator (
String^ region,
array<Tag^>^ tags
)
public IEnumerator<KeyValuePair<String,Object>> GetAnyEnumerator (
String region,
Tag[] tags
)
public function GetAnyEnumerator (
region : String,
tags : Tag[]
) : IEnumerator<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
An enumerator for 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 enumerator may only have some of the tags listed in the tags array parameter. If you want an enumerator to list only objects that have all the tags listed in the tags array parameter, use GetAllEnumerator.
Tags are supported only for objects stored in regions.