DB2ParameterCollection Methods

The methods of the DB2ParameterCollection class are listed here. For a complete list of DB2ParameterCollection class members, see the DB2ParameterCollection Members topic.

Table 1. Public Methods
Method Description
public method Add Overloaded. Adds the specified DB2®Parameter 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.