Export (0) Print
Expand All

SqlCeParameterCollection.Clear Method

Removes all items from the collection.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public override void Clear()

Implements

IList.Clear()

The following example copies elements of SqlCeParameterCollection to an array and clears the collection.

// ...
// create SqlCeCommand cmd
// ...
SqlCeParameter[] myParamArray = new SqlCeParameter[cmd.Parameters.Count];
cmd.Parameters.CopyTo(myParamArray, 0);
cmd.Parameters.Clear();


Show:
© 2014 Microsoft