Export (0) Print
Expand All

GetObjectsByAllTags Method

Gets an enumerable list of all cached objects in the specified region that have all 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 IEnumerable<KeyValuePair<string, Object>> GetObjectsByAllTags(
	IEnumerable<DataCacheTag> tags,
	string region
)

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 all the same tags in common.

Cached objects returned in the list have all the tags listed in the tags array parameter. If you want the list to also include those objects that only have some of the tags listed in the tags array parameter, use the GetObjectsByAnyTag(IEnumerable<(Of <<'(DataCacheTag>)>>), String) method.

Tags are supported only for objects stored in regions.

Community Additions

ADD
Show:
© 2015 Microsoft