Method DeleteIfVersionAsync
DeleteIfVersionAsync(String, MapValue, RowVersion, DeleteOptions, CancellationToken)
Deletes a row from a table if there is an existing row that
matches the primary key and its
RowVersion matches
the provided value.
Declaration
public Task<DeleteResult<RecordValue>> DeleteIfVersionAsync(string tableName, MapValue primaryKey, RowVersion version, DeleteOptions options = null, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
String |
tableName |
Name of the table. |
MapValue |
primaryKey |
Primary key of the row. |
RowVersion |
version |
Row version to match. |
DeleteOptions |
options |
(Optional) Options for the Delete operation.
Note that the value of MatchVersion is
not used for this API. |
CancellationToken |
cancellationToken |
(Optional) Cancellation token.
|
Returns
Exceptions
See Also