This documentation is archived and is not being maintained.

OracleParameterCollection.RemoveAt Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Removes the OracleParameter from the collection.

Overload List

Removes the OracleParameter at the specified index from the collection.

[Visual Basic] Overloads Public Overridable Sub RemoveAt(Integer) Implements IList.RemoveAt
[C#] public virtual void RemoveAt(int);
[C++] public: virtual void RemoveAt(int);
[JScript] public function RemoveAt(int);

Removes the OracleParameter with the specified name from the collection.

[Visual Basic] Overloads Public Overridable Sub RemoveAt(String) Implements IDataParameterCollection.RemoveAt
[C#] public virtual void RemoveAt(string);
[C++] public: virtual void RemoveAt(String*);
[JScript] public function RemoveAt(String);

Example

[Visual Basic, C#, C++] The following example searches for an OracleParameter with the specified ParameterName within an OracleParameterCollection. If the parameter exists, it is removed. This example assumes that an OracleParameterCollection has already been created.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of RemoveAt. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Public Sub SearchOracleParams()
    ' ...
    ' create OracleParameterCollection myParameters and OracleParameter myNewParam
    ' ...
    If myParameters.Contains("Description") Then
        myParameters.RemoveAt("Description")
    End If
End Sub 'SearchOracleParams

[C#] 
public void SearchOracleParams() {
    // ...
    // create OracleParameterCollection myParameters and OracleParameter myNewParam
    // ...
    if (myParameters.Contains("Description"))
       myParameters.RemoveAt("Description");
 }

[C++] 
public:
void SearchOracleParams() {
    // ...
    // create OracleParameterCollection myParameters and OracleParameter myNewParam
    // ...
    if (myParameters->Contains(S"Description"))
       myParameters->RemoveAt(S"Description");
 }

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

OracleParameterCollection Class | OracleParameterCollection Members | System.Data.OracleClient Namespace

Show: