Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetObjectsByAnyTag Method

DataCache::GetObjectsByAnyTag Method (IEnumerable<DataCacheTag^>^, String^)

 

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:
IEnumerable<KeyValuePair<String^, Object^>>^ GetObjectsByAnyTag(
	IEnumerable<DataCacheTag^>^ tags,
	String^ region
)

Parameters

tags
Type: System.Collections.Generic::IEnumerable<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<KeyValuePair<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 method.

Return to top
Show:
© 2015 Microsoft