Method SetAbsoluteExpiration
SetAbsoluteExpiration(DateTime)
Sets the absolute expiration time of the caching item. Only one type of expiration, either absoute expiration or sliding expiration, can be configured at one time.
Declaration
public void SetAbsoluteExpiration(DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | dateTime | The absolute date time after which the item will be expired from the cache. |