ComponentOne DataObjects for .NET
IndexOf(Relation) Method

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > RelationCollection Class > IndexOf Method : IndexOf(Relation) Method
The element of the collection.
Gets the index of the relation object in the collection.
Syntax
'Declaration
 
Public Overloads Function IndexOf( _
   ByVal relation As Relation _
) As System.Integer
public System.int IndexOf( 
   Relation relation
)

Parameters

relation
The element of the collection.

Return Value

The zero-based index of an element, if found; otherwise, -1.
See Also

Reference

RelationCollection Class
RelationCollection Members
Overload List