SqlParameterCollection.IndexOf Method (SqlParameter)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the location of the specified SqlParameter within the collection.

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

public int IndexOf(
	SqlParameter 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