DataCache.GetObjectsByAllTags Method (IEnumerable<DataCacheTag>, String)

 

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)

Syntax

public IEnumerable<KeyValuePair<string, object>> GetObjectsByAllTags(
    IEnumerable<DataCacheTag> tags,
    string region
)
public:
IEnumerable<KeyValuePair<String^, Object^>>^ GetObjectsByAllTags(
    IEnumerable<DataCacheTag^>^ tags,
    String^ region
)
member GetObjectsByAllTags : 
        tags:IEnumerable<DataCacheTag> *
        region:string -> IEnumerable<KeyValuePair<string, Object>>
Public Function GetObjectsByAllTags (
    tags As IEnumerable(Of DataCacheTag),
    region As String
) As IEnumerable(Of KeyValuePair(Of String, Object))

Parameters

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

Remarks

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

Tags are supported only for objects stored in regions.

See Also

DataCache Class
Microsoft.ApplicationServer.Caching Namespace

Return to top