SqlParameterCollection.IndexOf Method (String)

 

Gets the location of the specified SqlParameter with the specified name.

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

Public Overrides Function IndexOf (
	parameterName As String
) As Integer

Parameters

parameterName
Type: System.String

The case-sensitive name of the SqlParameter to find.

Return Value

Type: System.Int32

The zero-based location of the specified SqlParameter with the specified case-sensitive name. Returns -1 when the object does not exist in the SqlParameterCollection.

.NET Framework
Available since 1.1
Return to top
Show: