Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SADataReader 类

 

GetGuid 方法

以全局唯一标识符(global unique identifier,简称 GUID)形式返回指定列的值。

语法
Visual Basic

Public Overrides Function GetGuid( _
   ByVal ordinal As Integer _
) As Guid
C#

public override Guid GetGuid(
   int ordinal
);
参数
  • ordinal   表示获取值的来源列的顺序号。编号从零开始。

返回值

指定列的值。

注释

检索的数据必须已经是全局唯一的标识符或 binary(16) 值。

在调用此方法之前,调用 SADataReader.IsDBNull 方法以检查是否存在空值。

另请参见