NamedCacheQueryObjectsT Method

ScaleOut Software NamedCache API
Filters a set of objects found in the StateServer within this NamedCache returning an IQueryableT sequence containing only those objects that are instances of T.

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

public IQueryable<T> QueryObjects<T>()

Type Parameters

The type of the objects to return. The query implicitly filters objects within the NamedCache to include only objects of type T or subtypes of T.

Return Value

Type: IQueryableT
An IQueryableT instances suitable for enumerating the objects or for creating more complex queries using the LINQ query pattern.

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


Other Resources