Property IfAbsent
IfAbsent
Gets or sets a value that determines whether to perform the Put
operation only if there is no existing row that matches the
primary key.
Declaration
public bool IfAbsent { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
true to perform the Put operation only if there is no
existing row matching the primary key, otherwise false.
The default is false.
|
Remarks
This property is exclusive with IfPresent
and MatchVersion. If set to
true,
those properties will be unset. You may also use
PutIfAbsentAsync(String, MapValue, PutOptions, CancellationToken) API instead of setting
this option.