Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IndexOf Method (String)
Collapse the table of content
Expand the table of content

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)

'Declaration
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.

Implements

IDataParameterCollection.IndexOf(String)

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft