System.Data.DataTableCollection.IndexOf C# (CSharp) 메소드

IndexOf() 공개 메소드

Returns the index of a specified .
public IndexOf ( DataTable table ) : int
table DataTable
리턴 int
        public int IndexOf(DataTable table)
        {
            int tableCount = _list.Count;
            for (int i = 0; i < tableCount; ++i)
            {
                if (table == (DataTable)_list[i])
                {
                    return i;
                }
            }
            return -1;
        }

Same methods

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