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)

Public Function GetObjectsByTag (
	tag As DataCacheTag,
	region As String
) As IEnumerable(Of KeyValuePair(Of String, Object))

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(Of KeyValuePair(Of 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.

Return to top
Show: