Share via


SqlParameterCollection.IndexOf Method

Definition

Overloads

IndexOf(SqlParameter)

Gets the ___location of the specified SqlParameter within the collection.

IndexOf(Object)

Gets the ___location of the specified Object within the collection.

IndexOf(String)

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

IndexOf(SqlParameter)

Source:
SqlParameterCollection.cs
Source:
SqlParameterCollection.cs

Gets the ___location of the specified SqlParameter within the collection.

public:
 int IndexOf(Microsoft::Data::SqlClient::SqlParameter ^ value);
public int IndexOf(Microsoft.Data.SqlClient.SqlParameter value);
override this.IndexOf : Microsoft.Data.SqlClient.SqlParameter -> int
Public Function IndexOf (value As SqlParameter) As Integer

Parameters

value
SqlParameter

The SqlParameter to find.

Returns

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.

Applies to

IndexOf(Object)

Source:
SqlParameterCollection.cs
Source:
SqlParameterCollection.cs

Gets the ___location of the specified Object within the collection.

public:
 override int IndexOf(System::Object ^ value);
public override int IndexOf(object value);
override this.IndexOf : obj -> int
Public Overrides Function IndexOf (value As Object) As Integer

Parameters

value
Object

The Object to find.

Returns

The zero-based ___location of the specified Object that is a SqlParameter within the collection. Returns -1 when the object does not exist in the SqlParameterCollection.

Applies to

IndexOf(String)

Source:
SqlParameterCollection.cs
Source:
SqlParameterCollection.cs

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

public:
 override int IndexOf(System::String ^ parameterName);
public override int IndexOf(string parameterName);
override this.IndexOf : string -> int
Public Overrides Function IndexOf (parameterName As String) As Integer

Parameters

parameterName
String

The case-sensitive name of the SqlParameter to find.

Returns

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.

Applies to