DataCache.GetObjectsByAnyTag Method (IEnumerable<DataCacheTag>, String)
Gets an enumerable list of all cached objects in the specified region that have any of the same tags in common. Not supported in Windows Azure Shared Caching.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public IEnumerable<KeyValuePair<string, object>> GetObjectsByAnyTag(
IEnumerable<DataCacheTag> tags,
string region
)
public:
IEnumerable<KeyValuePair<String^, Object^>>^ GetObjectsByAnyTag(
IEnumerable<DataCacheTag^>^ tags,
String^ region
)
member GetObjectsByAnyTag :
tags:IEnumerable<DataCacheTag> *
region:string -> IEnumerable<KeyValuePair<string, Object>>
Public Function GetObjectsByAnyTag (
tags As IEnumerable(Of DataCacheTag),
region As String
) As IEnumerable(Of KeyValuePair(Of String, Object))
Parameters
tags
Type: System.Collections.Generic.IEnumerable<DataCacheTag>A list of tags for which to search.
region
Type: System.StringThe name of the region to search. Tags are not supported outside regions. Therefore, a region name is required.
Return Value
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>
An enumerable 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 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 the GetObjectsByAllTags method.
See Also
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
Return to top