Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
在已知列名的情况下返回列顺序号。
Public Overrides Function GetOrdinal(ByVal name As String) As Integer
public override int GetOrdinal(string name)
name 列名称。
从零开始的列顺序号。
GetOrdinal 首先执行区分大小写的查找,如果失败,再进行不区分大小写的搜索。
GetOrdinal 不区分日语假名长度。
因为基于顺序号的查找比命名查找效率更高,因此在循环内调用 GetOrdinal 效率不高。可以通过调用一次 GetOrdinal,并将结果指派给一个整数变量以供在循环内使用来节约时间。