Method AddPut
AddPut(String, MapValue, PutOptions, Boolean)
Adds a PutOperation to the collection.
Declaration
public WriteOperationCollection AddPut(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.
|
AddPut(String, MapValue, Boolean)
Adds a PutOperation to the collection.
Declaration
public WriteOperationCollection AddPut(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 .
|
AddPut(MapValue, PutOptions, Boolean)
Adds a PutOperation to the collection.
Declaration
public WriteOperationCollection AddPut(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.
|
AddPut(MapValue, Boolean)
Adds a PutOperation to the collection.
Declaration
public WriteOperationCollection AddPut(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 .
|