Method AddPut
AddPut(string, MapValue, PutOptions, bool)
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. |
| 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. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If
tableName is null or invalid or
row is null or
options contains invalid values. |
AddPut(string, MapValue, bool)
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. |
| 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. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If
tableName is null or invalid or
row is null. |
AddPut(MapValue, PutOptions, bool)
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. |
| 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. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If row is
null or options contains invalid values. |
AddPut(MapValue, bool)
Adds a PutOperation to the collection.
Declaration
public WriteOperationCollection AddPut(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. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If row is
null. |