Method AddPutIfVersion
AddPutIfVersion(String, MapValue, RowVersion, PutOptions, Boolean)
Adds a PutIfVersionOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfVersion(string tableName, MapValue row, RowVersion version, PutOptions options, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| String | tableName | Table name. |
| MapValue | row | Table row. |
| RowVersion | version | Row version to match. |
| PutOptions | options | Options for the Put operation. |
| Boolean | abortIfUnsuccessful | (Optional) If true and
this Put operation fails, it will cause the entire transaction to
abort, see
WriteManyAsync(WriteOperationCollection, WriteManyOptions, CancellationToken).
|
Returns
| Type | Description |
|---|---|
| WriteOperationCollection | A reference to this instance after the Put operation was added. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If
tableName is null or invalid or
row is null or
version is null or
options contains invalid values.
|
AddPutIfVersion(String, MapValue, RowVersion, Boolean)
Adds a PutIfVersionOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfVersion(string tableName, MapValue row, RowVersion version, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| String | tableName | Table name. |
| MapValue | row | Table row. |
| RowVersion | version | Row version to match. |
| Boolean | abortIfUnsuccessful | (Optional) If true and
this Put operation fails, it will cause the entire transaction to
abort, see
WriteManyAsync(WriteOperationCollection, WriteManyOptions, CancellationToken).
|
Returns
| Type | Description |
|---|---|
| WriteOperationCollection | A reference to this instance after the Put operation was added. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If
tableName is null or invalid or
row is null or
version is null.
|
AddPutIfVersion(MapValue, RowVersion, PutOptions, Boolean)
Adds a PutIfVersionOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfVersion(MapValue row, RowVersion version, PutOptions options, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| MapValue | row | Table row. |
| RowVersion | version | Row version to match. |
| PutOptions | options | Options for the Put operation. |
| Boolean | abortIfUnsuccessful | (Optional) If true and
this Put operation fails, it will cause the entire transaction to
abort, see
WriteManyAsync(String, WriteOperationCollection, WriteManyOptions, CancellationToken).
|
Returns
| Type | Description |
|---|---|
| WriteOperationCollection | A reference to this instance after the Put operation was added. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If row is
null or version is null or
options contains invalid values.
|
AddPutIfVersion(MapValue, RowVersion, Boolean)
Adds a PutIfVersionOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfVersion(MapValue row, RowVersion version, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| MapValue | row | Table row. |
| RowVersion | version | Row version to match. |
| Boolean | abortIfUnsuccessful | (Optional) If true and
this Put operation fails, it will cause the entire transaction to
abort, see
WriteManyAsync(String, WriteOperationCollection, WriteManyOptions, CancellationToken).
|
Returns
| Type | Description |
|---|---|
| WriteOperationCollection | A reference to this instance after the Put operation was added. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If row is
null or version is null.
|