Method Remove
Remove(String, WriteThruOptions)
Remove the specified data type if exists.
Declaration
void Remove(string key, WriteThruOptions writeThruOptions = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Name of the data type. |
WriteThruOptions | writeThruOptions | WriteThruOptions regarding updating data source. This can be WriteThru, WriteBehind or None. |
Examples
This example demonstrates how to remove a DataType from ICache.
ICache cache = CacheManager.GetCache("myCache");
string dataTypeName = "DataType0";
cache.DataTypeManager.Remove(dataTypeName);