DataCache::GetObjectsByTag Method (DataCacheTag^, String^)
Gets an enumerable list of all cached objects in the specified region that have the specified tag. Not supported in Windows Azure Shared Caching.
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
public:
IEnumerable<KeyValuePair<String^, Object^>>^ GetObjectsByTag(
DataCacheTag^ tag,
String^ region
)
Parameters
- tag
-
Type:
Microsoft.ApplicationServer.Caching::DataCacheTag^
The tag for which to search.
- region
-
Type:
System::String^
The 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 the specified tag. Null is returned if no objects in the specified region have the tag specified.
Tags are supported only for objects stored in regions.
Show: