Class PutResult<TRow>
Represents the result of the Put operation.
Namespace: Oracle.NoSQL.SDK
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class PutResult<TRow> : Object
Type Parameters
Name | Description |
---|---|
TRow | The type of value representing the row optionally returned by ExistingRow. Must be a reference type. Currently the only supported type is RecordValue. |
Remarks
This class is the result of PutAsync(String, MapValue, PutOptions, CancellationToken), PutIfAbsentAsync(String, MapValue, PutOptions, CancellationToken), PutIfPresentAsync(String, MapValue, PutOptions, CancellationToken) and PutIfVersionAsync(String, MapValue, RowVersion, PutOptions, CancellationToken) APIs.
Success determines whether the
conditional Put operation was successful. For unconditional Put
operations this property will always be true
because other
failures throw exceptions. If successful,
Version will be set. If conditional
Put operation fails, ExistingRow and
its ExistingVersion may be available if
ReturnExisting was set to true
.
Properties
Name | Description |
---|---|
ConsumedCapacity | Cloud Service/Cloud Simulator only. Gets capacity consumed by this operation. |
ExistingModificationTime | Gets the modification time of existing row if the conditional Put operation has failed. |
ExistingRow | Gets the value of existing row if the conditional Put operation has failed. |
ExistingVersion | Gets the value of RowVersion of existing row if the conditional Put operation has failed. |
GeneratedValue | Gets the value generated by the Put operation for an identity or generated UUID column. |
Success | Gets a value indicating whether the Put operation was successful. |
Version | Gets the RowVersion of the new row if the Put operation was successful. |