DbDataReader.GetGuid(Int32) 方法

定义

在派生类中重写时,以全局唯一标识符 (GUID) 的形式获取指定列的值。When overridden in a derived class, gets the value of the specified column as a globally unique identifier (GUID).

public:
 abstract Guid GetGuid(int ordinal);
public abstract Guid GetGuid (int ordinal);
abstract member GetGuid : int -> Guid
Public MustOverride Function GetGuid (ordinal As Integer) As Guid

参数

ordinal
Int32

从零开始的列序号。The zero-based column ordinal.

返回

Guid

指定列的值。The value of the specified column.

实现

例外

列索引超出范围。The column index is out of range.

指定的强制转换无效。The specified cast is not valid.

适用于

另请参阅