EntityDataReader.GetBoolean 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得指定之資料行的值做為布林值 (Boolean)。
命名空間: System.Data.Entity.Core.EntityClient
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Overrides Function GetBoolean ( _
ordinal As Integer _
) As Boolean
'用途
Dim instance As EntityDataReader
Dim ordinal As Integer
Dim returnValue As Boolean
returnValue = instance.GetBoolean(ordinal)
public override bool GetBoolean(
int ordinal
)
public:
virtual bool GetBoolean(
int ordinal
) override
abstract GetBoolean :
ordinal:int -> bool
override GetBoolean :
ordinal:int -> bool
public override function GetBoolean(
ordinal : int
) : boolean
參數
- ordinal
類型:System.Int32
以零為基底的資料行序數。
傳回值
類型:System.Boolean
指定的資料行值。