Click or drag to resize
PreparedStatementSetConsistencyLevel Method
Sets a default consistency level for all BoundStatement created from this object.

If no consistency level is set through this method, the BoundStatement created from this object will use the default consistency level (One).

Changing the default consistency level is not retroactive, it only applies to BoundStatement created after the change.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax
C#
public PreparedStatement SetConsistencyLevel(
	ConsistencyLevel consistency
)

Parameters

consistency
Type: CassandraConsistencyLevel
the default consistency level to set.

Return Value

Type: PreparedStatement
this PreparedStatement object.
See Also