Click or drag to resize

BatchStatementAdd Method

Adds a new statement to this batch. Note that statement can be any Statement. It is allowed to mix SimpleStatement and BoundStatement in the same BatchStatement in particular. Please note that the options of the added Statement (all those defined directly by the Statement class: consistency level, fetch size, tracing, ...) will be ignored for the purpose of the execution of the Batch. Instead, the options used are the one of this BatchStatement object.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
public BatchStatement Add(
	Statement statement
)

Parameters

statement
Type: CassandraStatement
Statement to add to the batch

Return Value

Type: BatchStatement
The Batch statement
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown when trying to add more than short.MaxValue Statements
See Also