Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
InvocableCacheHelper..::.Query Method (ICache, IFilter, InvocableCacheHelper..::.QueryType, Boolean, IComparer)
InvocableCacheHelper Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Generic implementation of the get methods for the particular IFilter provided.

Namespace: Tangosol.Net.Cache.Support
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public static Object[] Query(
    	ICache cache,
    	IFilter filter,
    	InvocableCacheHelper..::.QueryType queryType,
    	bool sort,
    	IComparer comparer
    )

#### Parameters

cache
  Type: Tangosol.Net.Cache..::.ICache
  The ICache to be queried.

filter
  Type: Tangosol.Util..::.IFilter
  The IFilter object representing the criteria that the entries of this cache should satisfy.

queryType
  Type: Tangosol.Net.Cache.Support..::.InvocableCacheHelper..::.QueryType
  An enum value that defines whether return array should be values, keys or entries.

sort
  Type: System..::.Boolean
  If true, sort the result-set before returning.

comparer
  Type: System.Collections..::.IComparer
  The IComparer to use for sorting (optional).

#### Return Value

A collection of the keys/values for entries that satisfy the specified criteria.

# See Also

InvocableCacheHelper Class
Query Overload
Tangosol.Net.Cache.Support Namespace