Export (0) Print
Expand All

GetObjectsByAnyTag Method

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)

public function GetObjectsByAnyTag(
	tags : IEnumerable<DataCacheTag>, 
	region : String
) : IEnumerable<KeyValuePair<String, Object>>

Parameters

tags
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'DataCacheTag>)>)>
A list of tags 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 any of the same tags in common. Null is returned if no objects in the specified region have any of the tags specified.

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(IEnumerable<(Of <<'(DataCacheTag>)>>), String) method.

Community Additions

ADD
Show:
© 2014 Microsoft