• DataStax Enterprise C# Driver API Documentation

    Show / Hide Table of Contents
    • Dse
      • AggregateMetadata
      • AlreadyExistsException
      • AtomicMonotonicTimestampGenerator
      • AtomicMonotonicWinApiTimestampGenerator
      • AuthenticationException
      • BatchStatement
      • BatchType
      • BigIntegerTypeAdapter
      • BoundStatement
      • Builder
      • BusyPoolException
      • CassandraConnectionStringBuilder
      • ClientOptions
      • Cluster
      • ColumnDesc
      • ColumnTypeCode
      • CompressionType
      • Configuration
      • ConsistencyLevel
      • ConstantReconnectionPolicy
      • ConstantSpeculativeExecutionPolicy
      • CqlColumn
      • CustomColumnInfo
      • DataCollectionMetadata
      • DataCollectionMetadata.SortOrder
      • DCAwareRoundRobinPolicy
      • DecimalTypeAdapter
      • DefaultRetryPolicy
      • Diagnostics
      • DowngradingConsistencyRetryPolicy
      • DriverException
      • DriverInternalError
      • DseCluster
      • DseClusterBuilder
      • DseConfiguration
      • DseLoadBalancingPolicy
      • Duration
      • DynamicCompositeTypeAdapter
      • EC2MultiRegionTranslator
      • ExecutionException
      • ExecutionInfo
      • ExponentialReconnectionPolicy
      • Extensions
      • FallthroughRetryPolicy
      • FixedReconnectionPolicy
      • FunctionFailureException
      • FunctionMetadata
      • Host
      • HostDistance
      • HostsEventArgs
      • HostsEventArgs.Kind
      • HostsEventHandler
      • IAddressTranslator
      • IAuthenticator
      • IAuthProvider
      • IAuthProviderNamed
      • ICluster
      • IColumnInfo
      • IdempotenceAwareRetryPolicy
      • IDseCluster
      • IDseSession
      • IExecutionProfile
      • IExecutionProfileBuilder
      • IExecutionProfileOptions
      • IExtendedRetryPolicy
      • IFrameCompressor
      • IInitializer
      • ILoadBalancingPolicy
      • IndexMetadata
      • IndexMetadata.IndexKind
      • InvalidConfigurationInQueryException
      • InvalidQueryException
      • InvalidTypeException
      • IReconnectionPolicy
      • IReconnectionSchedule
      • IRetryPolicy
      • IsBootstrappingException
      • ISession
      • ISessionState
      • ISpeculativeExecutionPlan
      • ISpeculativeExecutionPolicy
      • IStatement
      • ITimestampGenerator
      • ITypeAdapter
      • KeyspaceMetadata
      • KeyType
      • ListColumnInfo
      • LocalDate
      • LocalTime
      • Logger
      • LoggingRetryPolicy
      • MapColumnInfo
      • MaterializedViewMetadata
      • Metadata
      • MetadataSyncOptions
      • MetricsExtensions
      • MonitorReportingOptions
      • NoHostAvailableException
      • NoneAuthProvider
      • NoSpeculativeExecutionPolicy
      • NullTypeAdapter
      • OperationTimedOutException
      • OverloadedException
      • PlainTextAuthProvider
      • Policies
      • PoolingOptions
      • PreparedQueryNotFoundException
      • PreparedStatement
      • PreparedStatementIdMismatchException
      • ProtocolErrorException
      • ProtocolOptions
      • ProtocolVersion
      • QueryExecutionException
      • QueryOptions
      • QueryProtocolOptions
      • QueryProtocolOptions.QueryFlags
      • QueryTimeoutException
      • QueryTrace
      • QueryTrace.Event
      • QueryValidationException
      • ReadFailureException
      • ReadTimeoutException
      • RegularStatement
      • ReplicationStrategies
      • RequestInvalidException
      • RetryDecision
      • RetryDecision.RetryDecisionType
      • RetryLoadBalancingPolicy
      • RetryLoadBalancingPolicyEventArgs
      • RoundRobinPolicy
      • RoutingKey
      • Row
      • RowSet
      • RowSetMetadata
      • SchemaChangedEventArgs
      • SchemaChangedEventArgs.Kind
      • SchemaChangedEventHandler
      • ServerErrorException
      • Session
      • SetColumnInfo
      • SimpleStatement
      • SocketOptions
      • SSLOptions
      • Statement
      • SyntaxError
      • TableColumn
      • TableMetadata
      • TableOptions
      • TimeUuid
      • TokenAwarePolicy
      • ToManyConnectionsPerHost
      • TraceRetrievalException
      • TruncateException
      • TupleColumnInfo
      • TypeAdapters
      • UdtColumnInfo
      • UdtMap
      • UdtMap<T>
      • UdtMappingDefinitions
      • UnauthorizedException
      • UnavailableException
      • Unset
      • WriteFailureException
      • WriteTimeoutException
    • Dse.AppMetrics
      • DriverAppMetricsOptions
    • Dse.AppMetrics.MetricTypes
      • IAppMetricsCounter
      • IAppMetricsGauge
      • IAppMetricsMeter
      • IAppMetricsMetric
      • IAppMetricsTimer
    • Dse.AppMetrics.MetricValues
      • IAppMetricsHistogramValue
      • IAppMetricsMeterValue
      • IAppMetricsMetricWithValue<T>
      • IAppMetricsTimerValue
    • Dse.Auth
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
    • Dse.Auth.Sspi
      • SspiException
    • Dse.Data
      • CqlBatchTransaction
      • CqlCommand
      • CqlConnection
      • CqlDataAdapter
      • CqlParameter
      • CqlParameterCollection
      • CqlProviderFactory
      • CqlReader
    • Dse.Data.Linq
      • AllowFilteringAttribute
      • Batch
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CompactStorageAttribute
      • CounterAttribute
      • CqlArgumentException
      • CqlCommand
      • CqlConditionalCommand<TEntity>
      • CqlDelete
      • CqlFunction
      • CqlInsert<TEntity>
      • CqlLinqNotSupportedException
      • CqlOperator
      • CqlQuery<TEntity>
      • CqlQueryBase<TEntity>
      • CqlQueryExtensions
      • CqlQuerySingleElement<TEntity>
      • CqlScalar<TEntity>
      • CqlToken
      • CqlUpdate
      • IgnoreAttribute
      • ITable
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • SessionExtensions
      • StaticColumnAttribute
      • Table<TEntity>
      • TableAttribute
      • TableType
    • Dse.Geometry
      • GeometryBase
      • LineString
      • Point
      • Polygon
    • Dse.Graph
      • Edge
      • Element
      • GraphNode
      • GraphOptions
      • GraphResultSet
      • GraphStatement
      • IEdge
      • IElement
      • IGraphNode
      • IGraphStatement
      • IPath
      • IProperty
      • IVertex
      • IVertexProperty
      • Path
      • SimpleGraphStatement
      • Vertex
    • Dse.Mapping
      • AppliedInfo<T>
      • ColumnMap
      • Cql
      • CqlQueryOptions
      • IColumnDefinition
      • ICqlBatch
      • ICqlQueryAsyncClient
      • ICqlQueryClient
      • ICqlWriteAsyncClient
      • ICqlWriteClient
      • IMapper
      • IPage<T>
      • ITypeDefinition
      • Map<TPoco>
      • Mapper
      • MappingConfiguration
      • Mappings
      • SortOrder
    • Dse.Mapping.Attributes
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CounterAttribute
      • FrozenAttribute
      • FrozenKeyAttribute
      • FrozenValueAttribute
      • IgnoreAttribute
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • StaticColumnAttribute
      • TableAttribute
    • Dse.Mapping.TypeConversion
      • DefaultTypeConverter
      • EnumStringMapper<T>
      • NullableEnumStringMapper<T>
      • TypeConverter
    • Dse.Mapping.Utils
      • MemberInfoExtensions
    • Dse.Metrics
      • DriverMetricsOptions
      • IDriverMetrics
      • IMetric
      • IMetricsRegistry<TMetric>
      • NodeMetric
      • NodeMetric.Counters
      • NodeMetric.Gauges
      • NodeMetric.Meters
      • NodeMetric.Timers
      • SessionMetric
      • SessionMetric.Counters
      • SessionMetric.Gauges
      • SessionMetric.Meters
      • SessionMetric.Timers
    • Dse.Metrics.Abstractions
      • IDriverCounter
      • IDriverGauge
      • IDriverMeter
      • IDriverMetric
      • IDriverMetricsProvider
      • IDriverTimer
    • Dse.Search
      • DateRange
      • DateRangeBound
      • DateRangePrecision
    • Dse.Serialization
      • CustomTypeSerializer<T>
      • TypeSerializer
      • TypeSerializer<T>
      • TypeSerializerDefinitions
      • UdtSerializer

    Class CqlParameterCollection

    Represents a collection of CqlParameters.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.Data.Common.DbParameterCollection
    CqlParameterCollection
    Implements
    System.Data.IDataParameterCollection
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Data.Common.DbParameterCollection.System.Collections.IList.get_Item(System.Int32)
    System.Data.Common.DbParameterCollection.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Data.Common.DbParameterCollection.System.Data.IDataParameterCollection.get_Item(System.String)
    System.Data.Common.DbParameterCollection.System.Data.IDataParameterCollection.set_Item(System.String, System.Object)
    System.Data.Common.DbParameterCollection.Item[System.Int32]
    System.Data.Common.DbParameterCollection.Item[System.String]
    System.Data.Common.DbParameterCollection.System.Collections.IList.Item[System.Int32]
    System.Data.Common.DbParameterCollection.System.Data.IDataParameterCollection.Item[System.String]
    System.MarshalByRefObject.GetLifetimeService()
    System.MarshalByRefObject.InitializeLifetimeService()
    System.MarshalByRefObject.MemberwiseClone(System.Boolean)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Dse.Data
    Assembly: Dse.dll
    Syntax
    public class CqlParameterCollection : DbParameterCollection, IDataParameterCollection, IList, ICollection, IEnumerable

    Properties

    Count

    Specifies the number of items in the collection.

    Declaration
    public override int Count { get; }
    Property Value
    Type Description
    System.Int32

    The number of items in the collection.

    Overrides
    System.Data.Common.DbParameterCollection.Count

    IsFixedSize

    Specifies whether the collection is a fixed size.

    Declaration
    public override bool IsFixedSize { get; }
    Property Value
    Type Description
    System.Boolean

    true if the collection is a fixed size; otherwise false.

    Overrides
    System.Data.Common.DbParameterCollection.IsFixedSize

    IsReadOnly

    Specifies whether the collection is read-only.

    Declaration
    public override bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

    true if the collection is read-only; otherwise false.

    Overrides
    System.Data.Common.DbParameterCollection.IsReadOnly

    IsSynchronized

    Specifies whether the collection is synchronized.

    Declaration
    public override bool IsSynchronized { get; }
    Property Value
    Type Description
    System.Boolean

    true if the collection is synchronized; otherwise false.

    Overrides
    System.Data.Common.DbParameterCollection.IsSynchronized

    SyncRoot

    Specifies the System.Object to be used to synchronize access to the collection.

    Declaration
    public override object SyncRoot { get; }
    Property Value
    Type Description
    System.Object

    A System.Object to be used to synchronize access to the System.Data.Common.DbParameterCollection.

    Overrides
    System.Data.Common.DbParameterCollection.SyncRoot

    Methods

    Add(CqlParameter)

    Adds the specified parameter.

    Declaration
    public int Add(CqlParameter parameter)
    Parameters
    Type Name Description
    CqlParameter parameter

    The parameter.

    Returns
    Type Description
    System.Int32

    Add(Object)

    Adds the specified System.Data.Common.DbParameter object to the System.Data.Common.DbParameterCollection.

    Declaration
    public override int Add(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Data.Common.DbParameter.Value of the System.Data.Common.DbParameter to add to the collection.

    Returns
    Type Description
    System.Int32

    The index of the System.Data.Common.DbParameter object in the collection.

    Overrides
    System.Data.Common.DbParameterCollection.Add(System.Object)

    Add(String, Object)

    Adds a new parameter with the specified name and value. The name will be parsed to extract table and keyspace information (if any). The parameter type will be guessed from the object value.

    Declaration
    public CqlParameter Add(string name, object value)
    Parameters
    Type Name Description
    System.String name

    The name.

    System.Object value

    The value.

    Returns
    Type Description
    CqlParameter

    The created CqlParameter.

    AddRange(Array)

    Adds an array of items with the specified values to the System.Data.Common.DbParameterCollection.

    Declaration
    public override void AddRange(Array values)
    Parameters
    Type Name Description
    System.Array values

    An array of values of type System.Data.Common.DbParameter to add to the collection.

    Overrides
    System.Data.Common.DbParameterCollection.AddRange(System.Array)

    Clear()

    Removes all System.Data.Common.DbParameter values from the System.Data.Common.DbParameterCollection.

    Declaration
    public override void Clear()
    Overrides
    System.Data.Common.DbParameterCollection.Clear()

    Contains(Object)

    Indicates whether a System.Data.Common.DbParameter with the specified System.Data.Common.DbParameter.Value is contained in the collection.

    Declaration
    public override bool Contains(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Data.Common.DbParameter.Value of the System.Data.Common.DbParameter to look for in the collection.

    Returns
    Type Description
    System.Boolean

    true if the System.Data.Common.DbParameter is in the collection; otherwise false.

    Overrides
    System.Data.Common.DbParameterCollection.Contains(System.Object)

    Contains(String)

    Indicates whether a System.Data.Common.DbParameter with the specified name exists in the collection.

    Declaration
    public override bool Contains(string value)
    Parameters
    Type Name Description
    System.String value

    The name of the System.Data.Common.DbParameter to look for in the collection.

    Returns
    Type Description
    System.Boolean

    true if the System.Data.Common.DbParameter is in the collection; otherwise false.

    Overrides
    System.Data.Common.DbParameterCollection.Contains(System.String)

    CopyTo(Array, Int32)

    Copies an array of items to the collection starting at the specified index.

    Declaration
    public override void CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array

    The array of items to copy to the collection.

    System.Int32 index

    The index in the collection to copy the items.

    Overrides
    System.Data.Common.DbParameterCollection.CopyTo(System.Array, System.Int32)

    GetEnumerator()

    Exposes the System.Collections.IEnumerable.GetEnumerator() method, which supports a simple iteration over a collection by a .NET Framework data provider.

    Declaration
    public override IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    An System.Collections.IEnumerator that can be used to iterate through the collection.

    Overrides
    System.Data.Common.DbParameterCollection.GetEnumerator()

    GetParameter(Int32)

    Returns the System.Data.Common.DbParameter object at the specified index in the collection.

    Declaration
    protected override DbParameter GetParameter(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the System.Data.Common.DbParameterin the collection.

    Returns
    Type Description
    System.Data.Common.DbParameter

    The System.Data.Common.DbParameter object at the specified index in the collection.

    Overrides
    System.Data.Common.DbParameterCollection.GetParameter(System.Int32)

    GetParameter(String)

    Returns System.Data.Common.DbParameter the object with the specified name.

    Declaration
    protected override DbParameter GetParameter(string parameterName)
    Parameters
    Type Name Description
    System.String parameterName

    The name of the System.Data.Common.DbParameter in the collection.

    Returns
    Type Description
    System.Data.Common.DbParameter

    The System.Data.Common.DbParameter the object with the specified name.

    Overrides
    System.Data.Common.DbParameterCollection.GetParameter(System.String)

    IndexOf(Object)

    Returns the index of the specified System.Data.Common.DbParameter object.

    Declaration
    public override int IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Data.Common.DbParameter object in the collection.

    Returns
    Type Description
    System.Int32

    The index of the specified System.Data.Common.DbParameter object.

    Overrides
    System.Data.Common.DbParameterCollection.IndexOf(System.Object)

    IndexOf(String)

    Returns the index of the System.Data.Common.DbParameter object with the specified name.

    Declaration
    public override int IndexOf(string parameterName)
    Parameters
    Type Name Description
    System.String parameterName
    Returns
    Type Description
    System.Int32 The name of the System.Data.Common.DbParameter object in the collection. The index of the System.Data.Common.DbParameter object with the specified name.
    Overrides
    System.Data.Common.DbParameterCollection.IndexOf(System.String)

    Insert(Int32, Object)

    Inserts the specified index of the System.Data.Common.DbParameter object with the specified name into the collection at the specified index.

    Declaration
    public override void Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

    The index at which to insert the System.Data.Common.DbParameter object.

    System.Object value

    The System.Data.Common.DbParameter object to insert into the collection.

    Overrides
    System.Data.Common.DbParameterCollection.Insert(System.Int32, System.Object)

    Remove(Object)

    Removes the specified System.Data.Common.DbParameter object from the collection.

    Declaration
    public override void Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Data.Common.DbParameter object to remove.

    Overrides
    System.Data.Common.DbParameterCollection.Remove(System.Object)

    RemoveAt(Int32)

    Removes the System.Data.Common.DbParameter object at the specified from the collection.

    Declaration
    public override void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index where the System.Data.Common.DbParameter object is located.

    Overrides
    System.Data.Common.DbParameterCollection.RemoveAt(System.Int32)

    RemoveAt(String)

    Removes the System.Data.Common.DbParameter object with the specified name from the collection.

    Declaration
    public override void RemoveAt(string parameterName)
    Parameters
    Type Name Description
    System.String parameterName

    The name of the System.Data.Common.DbParameter object to remove.

    Overrides
    System.Data.Common.DbParameterCollection.RemoveAt(System.String)

    SetParameter(Int32, DbParameter)

    Sets the System.Data.Common.DbParameter object at the specified index to a new value.

    Declaration
    protected override void SetParameter(int index, DbParameter value)
    Parameters
    Type Name Description
    System.Int32 index

    The index where the System.Data.Common.DbParameter objectis located.

    System.Data.Common.DbParameter value

    The new System.Data.Common.DbParameter value.

    Overrides
    System.Data.Common.DbParameterCollection.SetParameter(System.Int32, System.Data.Common.DbParameter)

    SetParameter(String, DbParameter)

    Sets the System.Data.Common.DbParameter object with the specified name to a new value.

    Declaration
    protected override void SetParameter(string parameterName, DbParameter value)
    Parameters
    Type Name Description
    System.String parameterName

    The name of the System.Data.Common.DbParameter object in the collection.

    System.Data.Common.DbParameter value

    The new System.Data.Common.DbParameter value.

    Overrides
    System.Data.Common.DbParameterCollection.SetParameter(System.String, System.Data.Common.DbParameter)

    Implements

    System.Data.IDataParameterCollection
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Back to top © DataStax, All rights reserved.