This topic has not yet been rated - Rate this topic

GetObjectsByTag Method

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.