Export (0) Print
Expand All

SqlParameterCollection.IndexOf Method (SqlParameter)

Gets the location of the specified SqlParameter within the collection.

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

Public Function IndexOf ( _
	value As SqlParameter _
) As Integer


Type: System.Data.SqlClient.SqlParameter

The SqlParameter to find.

Return Value

Type: System.Int32
The zero-based location of the specified SqlParameter that is a SqlParameter within the collection. Returns -1 when the object does not exist in the SqlParameterCollection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft