Export (0) Print
Expand All

SqlParameterCollection.Insert Method

Inserts a SqlParameter into the collection at the specified index.

[Visual Basic]
Public Overridable Sub Insert( _
   ByVal index As Integer, _
   ByVal value As Object _
) Implements IList.Insert
[C#]
public virtual void Insert(
 int index,
 object value
);
[C++]
public: virtual void Insert(
 int index,
 Object* value
);
[JScript]
public function Insert(
   index : int,
 value : Object
);

Parameters

index
The zero-based index where the parameter is to be inserted within the collection.
value
The SqlParameter to add to the collection.

Implements

IList.Insert

Exceptions

Exception Type Condition
InvalidCastException The value parameter was not an SqlParameter.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlParameterCollection Class | SqlParameterCollection Members | System.Data.SqlClient Namespace

Show:
© 2014 Microsoft