Method AddPutIfPresent
AddPutIfPresent(string, MapValue, PutOptions, bool)
Adds a PutIfPresentOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfPresent(string tableName, MapValue row, PutOptions options, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | Table name. |
| MapValue | row | Table row. |
| PutOptions | options | Options for the Put operation. |
| bool | 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. |
AddPutIfPresent(string, MapValue, bool)
Adds a PutIfPresentOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfPresent(string tableName, MapValue row, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | Table name. |
| MapValue | row | Table row. |
| bool | 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. |
AddPutIfPresent(MapValue, PutOptions, bool)
Adds a PutIfPresentOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfPresent(MapValue row, PutOptions options, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| MapValue | row | Table row. |
| PutOptions | options | Options for the Put operation. |
| bool | 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. |
AddPutIfPresent(MapValue, bool)
Adds a PutIfPresentOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfPresent(MapValue row, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| MapValue | row | Table row. |
| bool | 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. |