ComponentOne DataObjects for .NET
IndexOf Method (C1ExpressRelationCollection)

C1.Data.Express.2 Assembly > C1.Data.Express Namespace > C1ExpressRelationCollection Class : IndexOf Method
The relation object to locate in the collection.
Returns the zero-based index of the relation object in the collection.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal relation As C1ExpressRelation _
) As System.Integer
public System.int IndexOf( 
   C1ExpressRelation relation
)

Parameters

relation
The relation object to locate in the collection.

Return Value

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

Reference

C1ExpressRelationCollection Class
C1ExpressRelationCollection Members