DataRelationCollection.IndexOf DataRelationCollection.IndexOf DataRelationCollection.IndexOf DataRelationCollection.IndexOf Method

Definition

Gets the index of the specified data relation.

Overloads

IndexOf(DataRelation) IndexOf(DataRelation) IndexOf(DataRelation) IndexOf(DataRelation)

Gets the index of the specified DataRelation object.

IndexOf(String) IndexOf(String) IndexOf(String) IndexOf(String)

Gets the index of the DataRelation specified by name.

IndexOf(DataRelation) IndexOf(DataRelation) IndexOf(DataRelation) IndexOf(DataRelation)

Gets the index of the specified DataRelation object.

public:
 virtual int IndexOf(System::Data::DataRelation ^ relation);
public virtual int IndexOf (System.Data.DataRelation relation);
abstract member IndexOf : System.Data.DataRelation -> int
override this.IndexOf : System.Data.DataRelation -> int
Public Overridable Function IndexOf (relation As DataRelation) As Integer

Parameters

relation
DataRelation DataRelation DataRelation DataRelation

The relation to search for.

Returns

The 0-based index of the relation, or -1 if the relation is not found in the collection.

See also

IndexOf(String) IndexOf(String) IndexOf(String) IndexOf(String)

Gets the index of the DataRelation specified by name.

public:
 virtual int IndexOf(System::String ^ relationName);
public virtual int IndexOf (string relationName);
abstract member IndexOf : string -> int
override this.IndexOf : string -> int
Public Overridable Function IndexOf (relationName As String) As Integer

Parameters

relationName
String String String String

The name of the relation to find.

Returns

The zero-based index of the relation with the specified name, or -1 if the relation does not exist in the collection.

See also

Applies to