Method InsertAtTail
InsertAtTail(T)
Insert the specified value at the tail of the List.
Declaration
void InsertAtTail(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | Element to insert in the List. |
Examples
The following code sample shows how to insert element at end of the Distributed List.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedList";
IDistributedList<Product> list = cache.DataTypeManager.GetList<Product>(dataTypeName);
// Get new product
Product newProduct = FetchNewProduct();
list.InsertAtTail(newProduct);