DataRelationCollection.IndexOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre