NamedCacheQueryKeysT Method

ScaleOut Software NamedCache API
Filters a set of objects found in the StateServer within this NamedCache returning a sequence of typed, NamedCache keys (IQueryableT corresponding to only those objects that are instances of T.

Namespace:  Soss.Client
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public IQueryable<CachedObjectId<T>> QueryKeys<T>()

Type Parameters

T
The type of the objects whose keys are returned. The query implicitly filters objects within the NamedCache to include only objects of type T or subtypes of T.

Return Value

Type: IQueryableCachedObjectIdT
The NamedCache keys (ObjectIds) corresponding to objects of type T or subclasses of T.
Remarks

Objects may be retrieved from StateServer with this method only if the type T is either directly or indirectly annotated with the SossIndexAttribute. See Property Indexes for an overview of how this works.

The QueryObjectsT method is typically used as a data source for the LINQ operators found in static class Queryable. See LINQ Overview for an overview of the StateServer query facility.

See Also

Reference

Other Resources