Method GetRange
GetRange(Int32, Int32)
Returns a list that will contain only the specified range of elements specified.
Declaration
IList<T> GetRange(int start, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | Starting index. |
System.Int32 | count | Number of items. |
Returns
Type | Description |
---|---|
IList<T> |
Examples
The following code sample shows how to get range of specified items form distributed list.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedList";
IDistributedList<Product> list = cache.DataTypeManager.GetList<Product>(dataTypeName);
IList<Product> subList = list.GetRange(25, 50);