Class IgniteDbParameterCollection
Ignite database parameter collection.
public sealed class IgniteDbParameterCollection : DbParameterCollection, IDataParameterCollection, IList, ICollection, IReadOnlyList<IgniteDbParameter>, IReadOnlyCollection<IgniteDbParameter>, IList<IgniteDbParameter>, ICollection<IgniteDbParameter>, IEnumerable<IgniteDbParameter>, IEnumerable
- Inheritance
-
IgniteDbParameterCollection
- Implements
- Inherited Members
Properties
Count
Gets the number of parameters in the collection.
public override int Count { get; }
Property Value
this[int]
Gets or sets the element at the specified index.
public IgniteDbParameter this[int index] { get; set; }
Parameters
indexintThe zero-based index of the element to get or set.
Property Value
- IgniteDbParameter
The element at the specified index.
SyncRoot
Specifies the object to be used to synchronize access to the collection.
public override object SyncRoot { get; }
Property Value
- object
A object to be used to synchronize access to the DbParameterCollection.
Methods
Add(IgniteDbParameter)
Adds an item to the ICollection<T>.
public void Add(IgniteDbParameter item)
Parameters
itemIgniteDbParameterThe object to add to the ICollection<T>.
Exceptions
- NotSupportedException
The ICollection<T> is read-only.
Add(object)
Adds the specified DbParameter object to the DbParameterCollection.
public override int Add(object value)
Parameters
valueobjectThe Value of the DbParameter to add to the collection.
Returns
- int
The index of the DbParameter object in the collection.
AddRange(Array)
Adds an array of items with the specified values to the DbParameterCollection.
public override void AddRange(Array values)
Parameters
valuesArrayAn array of values of type DbParameter to add to the collection.
Clear()
Removes all parameters from the collection.
public override void Clear()
Contains(IgniteDbParameter)
Determines whether the ICollection<T> contains a specific value.
public bool Contains(IgniteDbParameter item)
Parameters
itemIgniteDbParameterThe object to locate in the ICollection<T>.
Returns
- bool
true if
itemis found in the ICollection<T>; otherwise, false.
Contains(object)
Indicates whether a DbParameter with the specified Value is contained in the collection.
public override bool Contains(object value)
Parameters
valueobjectThe Value of the DbParameter to look for in the collection.
Returns
- bool
true if the DbParameter is in the collection; otherwise false.
Contains(string)
Indicates whether a DbParameter with the specified name exists in the collection.
public override bool Contains(string value)
Parameters
valuestringThe name of the DbParameter to look for in the collection.
Returns
- bool
true if the DbParameter is in the collection; otherwise false.
CopyTo(IgniteDbParameter[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
public void CopyTo(IgniteDbParameter[] array, int arrayIndex)
Parameters
arrayIgniteDbParameter[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in
arrayat which copying begins.
Exceptions
- ArgumentNullException
arrayis null.- ArgumentOutOfRangeException
arrayIndexis less than 0.- ArgumentException
The number of elements in the source ICollection<T> is greater than the available space from
arrayIndexto the end of the destinationarray.
CopyTo(Array, int)
Copies an array of items to the collection starting at the specified index.
public override void CopyTo(Array array, int index)
Parameters
arrayArrayThe array of items to copy to the collection.
indexintThe index in the collection to copy the items.
GetEnumerator()
Exposes the GetEnumerator() method, which supports a simple iteration over a collection by a .NET data provider.
public override IEnumerator GetEnumerator()
Returns
- IEnumerator
An IEnumerator that can be used to iterate through the collection.
GetParameter(int)
Returns the DbParameter object at the specified index in the collection.
protected override DbParameter GetParameter(int index)
Parameters
indexintThe index of the DbParameter in the collection.
Returns
- DbParameter
The DbParameter object at the specified index in the collection.
GetParameter(string)
Returns DbParameter the object with the specified name.
protected override DbParameter GetParameter(string parameterName)
Parameters
parameterNamestringThe name of the DbParameter in the collection.
Returns
- DbParameter
The DbParameter the object with the specified name.
IndexOf(IgniteDbParameter)
Determines the index of a specific item in the IList<T>.
public int IndexOf(IgniteDbParameter item)
Parameters
itemIgniteDbParameterThe object to locate in the IList<T>.
Returns
- int
The index of
itemif found in the list; otherwise, -1.
IndexOf(object)
Returns the index of the specified DbParameter object.
public override int IndexOf(object value)
Parameters
valueobjectThe DbParameter object in the collection.
Returns
- int
The index of the specified DbParameter object.
IndexOf(string)
Returns the index of the DbParameter object with the specified name.
public override int IndexOf(string parameterName)
Parameters
parameterNamestringThe name of the DbParameter object in the collection.
Returns
- int
The index of the DbParameter object with the specified name.
Insert(int, IgniteDbParameter)
Inserts an item to the IList<T> at the specified index.
public void Insert(int index, IgniteDbParameter value)
Parameters
indexintThe zero-based index at which
itemshould be inserted.valueIgniteDbParameter
Exceptions
- ArgumentOutOfRangeException
indexis not a valid index in the IList<T>.- NotSupportedException
The IList<T> is read-only.
Insert(int, object)
Inserts the specified index of the DbParameter object with the specified name into the collection at the specified index.
public override void Insert(int index, object value)
Parameters
indexintThe index at which to insert the DbParameter object.
valueobjectThe DbParameter object to insert into the collection.
Remove(IgniteDbParameter)
Removes the first occurrence of a specific object from the ICollection<T>.
public bool Remove(IgniteDbParameter value)
Parameters
valueIgniteDbParameter
Returns
- bool
true if
itemwas successfully removed from the ICollection<T>; otherwise, false. This method also returns false ifitemis not found in the original ICollection<T>.
Exceptions
- NotSupportedException
The ICollection<T> is read-only.
Remove(object)
Removes the specified DbParameter object from the collection.
public override void Remove(object value)
Parameters
valueobjectThe DbParameter object to remove.
RemoveAt(int)
Removes the item at the specified index.
public override void RemoveAt(int index)
Parameters
indexintThe zero-based index of the item to remove.
RemoveAt(string)
Removes the DbParameter object with the specified name from the collection.
public override void RemoveAt(string parameterName)
Parameters
parameterNamestringThe name of the DbParameter object to remove.
SetParameter(int, DbParameter)
Sets the DbParameter object at the specified index to a new value.
protected override void SetParameter(int index, DbParameter value)
Parameters
indexintThe index where the DbParameter object is located.
valueDbParameterThe new DbParameter value.
SetParameter(string, DbParameter)
Sets the DbParameter object with the specified name to a new value.
protected override void SetParameter(string parameterName, DbParameter value)
Parameters
parameterNamestringThe name of the DbParameter object in the collection.
valueDbParameterThe new DbParameter value.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.