Click or drag to resize

DocumentExpireAt Method

Sets an absolute point in time for the document to expire. Must be a DateTime in the future. Pass a null value to cancel an expiration.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public void ExpireAt(
	Nullable<DateTime> expireTime
)

Parameters

expireTime
Type: SystemNullableDateTime
The time at which the document expires, and is eligible to be auto-purged
Exceptions
ExceptionCondition
InvalidOperationExceptionThe expireTime is not in the future
See Also