DataRelationCollection.IndexOf Método
Definição
Obtém o índice da relação de dados especificada.Gets the index of the specified data relation.
Sobrecargas
IndexOf(DataRelation) |
Obtém o índice do objeto DataRelation especificado.Gets the index of the specified DataRelation object. |
IndexOf(String) |
Obtém o índice do DataRelation especificado por nome.Gets the index of the DataRelation specified by name. |
IndexOf(DataRelation)
Obtém o índice do objeto DataRelation especificado.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
Parâmetros
- relation
- DataRelation
A relação a ser pesquisada.The relation to search for.
Retornos
O índice baseado em 0 da relação ou -1 se a relação não for encontrada na coleção.The 0-based index of the relation, or -1 if the relation is not found in the collection.
Aplica-se a
IndexOf(String)
Obtém o índice do DataRelation especificado por nome.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
Parâmetros
- relationName
- String
O nome da relação a ser localizada.The name of the relation to find.
Retornos
O índice baseado em zero da relação com o nome especificado ou -1 se a relação não existir na coleção.The zero-based index of the relation with the specified name, or -1 if the relation does not exist in the collection.