Click or drag to resize
CqlCommand Methods

The CqlCommand type exposes the following members.

Methods
  NameDescription
Public methodCancel (Overrides DbCommandCancel.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodCreateParameter
Creates a new instance of a DbParameter object.
(Inherited from DbCommand.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecuteNonQuery (Overrides DbCommandExecuteNonQuery.)
Public methodExecuteNonQueryAsync
An asynchronous version of ExecuteNonQuery, which executes a SQL statement against a connection object.Invokes ExecuteNonQueryAsync(CancellationToken) with CancellationToken.None.
(Inherited from DbCommand.)
Public methodExecuteNonQueryAsync(CancellationToken)
This is the asynchronous version of ExecuteNonQuery. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous ExecuteNonQuery method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteNonQuery will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete.
(Inherited from DbCommand.)
Public methodExecuteReader
Executes the CommandText against the Connection, and returns an DbDataReader.
(Inherited from DbCommand.)
Public methodExecuteReader(CommandBehavior)
Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.
(Inherited from DbCommand.)
Public methodExecuteReaderAsync
An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken) with CancellationToken.None.
(Inherited from DbCommand.)
Public methodExecuteReaderAsync(CancellationToken)
An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader. This method propagates a notification that operations should be canceled.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Inherited from DbCommand.)
Public methodExecuteReaderAsync(CommandBehavior)
An asynchronous version of ExecuteReader, which executes the CommandText against the Connection and returns a DbDataReader.Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Inherited from DbCommand.)
Public methodExecuteReaderAsync(CommandBehavior, CancellationToken)
Invokes ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken).
(Inherited from DbCommand.)
Public methodExecuteScalar (Overrides DbCommandExecuteScalar.)
Public methodExecuteScalarAsync
An asynchronous version of ExecuteScalar, which executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored.Invokes ExecuteScalarAsync(CancellationToken) with CancellationToken.None.
(Inherited from DbCommand.)
Public methodExecuteScalarAsync(CancellationToken)
This is the asynchronous version of ExecuteScalar. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored.The default implementation invokes the synchronous ExecuteScalar method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by ExecuteScalar will be communicated via the returned Task Exception property.Do not invoke other methods and properties of the DbCommand object until the returned Task is complete.
(Inherited from DbCommand.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodPrepare (Overrides DbCommandPrepare.)
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
See Also