Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回指定列的名称。
Public Overrides Function GetName(ByVal colID As Integer) As String
public override string GetName(int colID)
colID 列的 ID 号。值必须在 [0,ULDataReader.FieldCount-1] 范围内。游标中第一列的 ID 值为 0。
列的名称;如果该列没有名称,则为空值引用(在 Visual Basic 中是 Nothing)。如果该列在 SQL 查询中使用别名,则返回该别名。
ULException 类 发生 SQL 错误。
请注意,结果集中并非所有列都有名称,并且并非所有列名都是唯一的。如果没有使用别名,非计算列的名称将以其所属表的名称为前缀。例如,MyTable.ID 是查询 "SELECT ID FROM MyTable" 返回的结果集中仅有的一列的名称。
此方法与 ULCursorSchema.GetColumnName 方法相同。