ערוך

שתף באמצעות


DataRelationCollection.IndexOf Method

Definition

Gets the index of the specified data relation.

Overloads

IndexOf(DataRelation)

Gets the index of the specified DataRelation object.

IndexOf(String)

Gets the index of the DataRelation specified by name.

IndexOf(DataRelation)

Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs

Gets the index of the specified DataRelation object.

public:
 virtual int IndexOf(System::Data::DataRelation ^ relation);
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

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

Applies to

IndexOf(String)

Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs
Source:
DataRelationCollection.cs

Gets the index of the DataRelation specified by name.

public:
 virtual int IndexOf(System::String ^ relationName);
public virtual int IndexOf (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

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