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

Parameters

value
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
Available since 2.0
Return to top
Show: