ComponentOne DataObjects for .NET
IndexOf Method (DataFieldCollection)

C1.Data.2 Assembly > C1.Data Namespace > DataFieldCollection Class : IndexOf Method
The DataField.Name of the element. The search is not case-sensitive.
Returns the zero-based index of the first occurrence of a value in the collection.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal name As System.String _
) As System.Integer
public System.int IndexOf( 
   System.string name
)

Parameters

name
The DataField.Name of the element. The search is not case-sensitive.

Return Value

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

Reference

DataFieldCollection Class
DataFieldCollection Members