Method AddPutIfPresent
AddPutIfPresent(String, MapValue, PutOptions, Boolean)
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. |
| 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
options contains invalid values.
|
AddPutIfPresent(String, MapValue, Boolean)
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. |
| 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.
|
AddPutIfPresent(MapValue, PutOptions, Boolean)
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. |
| 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 options contains invalid values.
|
AddPutIfPresent(MapValue, Boolean)
Adds a PutIfPresentOperation to the collection.
Declaration
public WriteOperationCollection AddPutIfPresent(MapValue row, bool abortIfUnsuccessful = false)
Parameters
| Type | Name | Description |
|---|---|---|
| MapValue | row | Table row. |
| 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.
|