Method OfHours
OfHours(Int64)
Creates TTL with duration of hours.
Declaration
public static TimeToLive OfHours(long value)
Parameters
Type | Name | Description |
---|---|---|
Int64 | value | Number of hours. Must be a positive value. |
Returns
Type | Description |
---|---|
TimeToLive | TTL object representing specified duration in hours. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | If
value is negative or zero. |