System.Data.DataTableCollection.IndexOf C# (CSharp) Method

IndexOf() public method

Returns the index of the table with the given name (case insensitive), or -1 if the table doesn't exist in the collection.
public IndexOf ( string tableName ) : int
tableName string
return int
        public int IndexOf(string tableName)
        {
            int index = InternalIndexOf(tableName);
            return (index < 0) ? -1 : index;
        }

Same methods

DataTableCollection::IndexOf ( DataTable table ) : int
DataTableCollection::IndexOf ( string tableName, string tableNamespace ) : int
DataTableCollection::IndexOf ( string tableName, string tableNamespace, bool chekforNull ) : int