asp.net.ph

OleDbParameterCollection.Clear Method

System.Data.OleDb Namespace   OleDbParameterCollection Class


Clears the collection of any parameters.

[ VB ]
Public Sub Clear ( )

[ C# ]
public void Clear ( );

[ C++ ]
public: void Clear ( );

[ JScript ]
public function Clear ( );

Remarks

Use this method to remove all OleDbParameter objects from the Parameters collection of a specified command. To remove a particular OleDbParameter from the collection, use either the Remove or RemoveAt method.

This method resets the Parameters.Count property to 0.

Example

The following example gets the OleDbParameterCollection of a given OleDbCommand, then clears the collection.

private void ClearParams ( OleDbCommand cmd ) {
   OleDbParameterCollection myParams = cmd.Parameters;
   myParams.Clear ( );
}
  C# VB

See Also

OleDbParameterCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph