public static JetGetTableColumnInfo ( JET_SESID sesid, JET_TABLEID tableid, JET_COLUMNID columnid, JET_COLUMNDEF &columndef ) : void | ||
sesid | JET_SESID | The session to use. |
tableid | JET_TABLEID | The table containing the column. |
columnid | JET_COLUMNID | The columnid of the column. |
columndef | JET_COLUMNDEF | Filled in with information about the column. |
리턴 | void |
/// <summary> /// Iterates over all the columns in the table, returning information about each one. /// </summary> /// <param name="sesid">The session to use.</param> /// <param name="tableid">The table to retrieve column information for.</param> /// <returns>An iterator over ColumnInfo for each column in the table.</returns> public static IEnumerable <ColumnInfo> GetTableColumns(JET_SESID sesid, JET_TABLEID tableid) { JET_COLUMNLIST columnlist; Api.JetGetTableColumnInfo(sesid, tableid, string.Empty, out columnlist); return(EnumerateColumnInfos(sesid, columnlist)); }
/// <summary> /// Returns an enumerator that iterates through the ColumnInfo objects describing /// the columns in the table. /// </summary> /// <returns> /// An enumerator that iterates through the ColumnInfo objects describing /// the columns in the table. /// </returns> public IEnumerator <ColumnInfo> GetEnumerator() { JET_COLUMNLIST columnlist; Api.JetGetTableColumnInfo(this.sesid, this.tableid, string.Empty, out columnlist); return(new TableEnumerator <ColumnInfo>( this.sesid, columnlist.tableid, i => this.GetColumnInfoFromColumnlist(columnlist))); }