| Session Class | 
Namespace: Cassandra
public class Session : ISession, IDisposable
The Session type exposes the following members.
| Name | Description | |
|---|---|---|
| BeginExecute(IStatement, AsyncCallback, Object) | 
            Begins asynchronous execute operation
              | |
| BeginExecute(String, ConsistencyLevel, AsyncCallback, Object) | 
            Begins asynchronous execute operation
              | |
| BeginPrepare | 
            Begins asynchronous prepare operation
              | |
| ChangeKeyspace | 
            Switches to the specified keyspace.
              | |
| CreateKeyspace | 
             Creates new keyspace in current cluster.        
              | |
| CreateKeyspaceIfNotExists | 
             Creates new keyspace in current cluster.
             If keyspace with specified name already exists, then this method does nothing.
              | |
| DeleteKeyspace | 
             Deletes specified keyspace from current cluster.
             If keyspace with specified name does not exist, then exception will be thrown.
              | |
| DeleteKeyspaceIfExists | 
             Deletes specified keyspace from current cluster.
             If keyspace with specified name does not exist, then this method does nothing.
              | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.  | |
| EndExecute | 
            Ends asynchronous execute operation
              | |
| EndPrepare | 
            Ends asynchronous prepare operation
              | |
| Equals | Determines whether the specified Object is equal to the current Object.  (Inherited from Object.) | |
| Execute(String) | 
            Executes the provided query.
              | |
| Execute(IStatement) | 
            Executes the provided query.
              | |
| Execute(String, ConsistencyLevel) | 
            Executes the provided query.
              | |
| Execute(String, Int32) | 
            Executes the provided query.
              | |
| ExecuteAsync | 
            Executes a query asynchronously
              | |
| GetHashCode | Serves as a hash function for a particular type.   (Inherited from Object.) | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| Prepare(String) | ||
| Prepare(String, IDictionaryString, Byte) | ||
| PrepareAsync(String) | 
            Prepares the provided query string asynchronously.
              | |
| PrepareAsync(String, IDictionaryString, Byte) | 
            Prepares the provided query string asynchronously, and sending the custom payload request.
              | |
| ToString | Returns a string that represents the current object.  (Inherited from Object.) | |
| WaitForSchemaAgreement(IPEndPoint) | ||
| WaitForSchemaAgreement(RowSet) | 
| Name | Description | |
|---|---|---|
| CreateBatch | (Defined by SessionExtensions.) | |
| GetTableTEntity | Extension method used for backward-compatibility, use TableTEntity(ISession) constructor instead. Creates a new instance of the Linq IQueryProvider that represents a table in Cassandra using the mapping configuration provided. Fluent configuration or attributes can be used to define mapping information.  | 
| Name | Description | |
|---|---|---|
| BinaryProtocolVersion | ||
| Cluster | 
            Gets the cluster information and state
              | |
| Configuration | 
            Gets the cluster configuration
              | |
| IsDisposed | 
            Determines if the session is already disposed
              | |
| Keyspace | 
            Gets or sets the keyspace
              | |
| Policies | ||
| UserDefinedTypes | 
            Gets the user defined type mappings
              |