ComponentOne DataObjects for .NET
IndexOf(String) Method

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

Parameters

name
The Relation.Name of the element.

Return Value

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

Reference

RelationCollection Class
RelationCollection Members
Overload List