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.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public IEnumerable<KeyValuePair<string, object>> GetObjectsByTag(
DataCacheTag tag,
string region
)
public:
IEnumerable<KeyValuePair<String^, Object^>>^ GetObjectsByTag(
DataCacheTag^ tag,
String^ region
)
member GetObjectsByTag :
tag:DataCacheTag *
region:string -> IEnumerable<KeyValuePair<string, Object>>
Public Function GetObjectsByTag (
tag As DataCacheTag,
region As String
) As IEnumerable(Of KeyValuePair(Of String, Object))
Parameters
tag
Type: Microsoft.ApplicationServer.Caching.DataCacheTagThe tag 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 the specified tag. Null is returned if no objects in the specified region have the tag specified.
Remarks
Tags are supported only for objects stored in regions.
See Also
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
Return to top