DB2 Version 10.1 for Linux, UNIX, and Windows

DB2ParameterCollection Members

The following tables list the members exposed by the DB2ParameterCollection class.

Table 1. Public Properties
Method Description
public property Count Gets the number of DB2®Parameter objects in the collection.
public property IsFixedSize Gets a value that indicates whether the DB2ParameterCollection has a fixed size.
public property IsReadOnly Gets a value that indicates whether the DB2ParameterCollection is read-only.
public property IsSynchronized Gets a value that indicates whether the DB2ParameterCollection is synchronized.
public property this Overloaded. Gets or sets the DB2Parameter with a specified attribute.

In C#, this property is the indexer for the DB2ParameterCollection class.

public property SyncRoot Gets an object that can be used to synchronize access to the DB2ParameterCollection.
Table 2. Public Methods
Method Description
public method Add Overloaded. Adds the specified DB2Parameter to the collection.
public method AddRange Overridden. Appends an array of values to the DB2ParameterCollection.
public method Clear Removes all items from the collection.
public method Contains Overloaded. Gets a value indicating whether a DB2Parameter object exists in the collection.
public method CopyTo Copies DB2Parameter objects from the DB2ParameterCollection to the specified array.
public method CreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public method Equals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public method GetEnumerator Returns an enumerator that iterates through the DB2ParameterCollection.
public method GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public method GetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public method GetType (inherited from Object) Gets the Type of the current instance.
public method IndexOf Overloaded. Gets the location in the collection of the DB2Parameter .
public method InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public method Insert Inserts a DB2Parameter into the collection at the specified index.
public method Remove Removes the specified DB2Parameter from the collection.
public method RemoveAt Overloaded. Removes the specified DB2Parameter from the collection.
public method ToString (inherited from Object) Returns a String that represents the current Object.
Table 3. Protected Methods
Method Description
protected method Finalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and Microsoft(R) Visual C++(R), finalizers are expressed using destructor syntax.

protected method GetParameter Overloaded. Returns the DbParameter object with the specified name in the DB2ParameterCollection.
protected method MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected method SetParameter Overloaded. Sets the specified DbParameter to the specified value.