SqlColumnBinder.GetInt32 方法 (DbDataReader, Int32, Int32)
擷取這個資料行的值做為 int 從指定的讀取器。
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Function GetInt32 ( _
reader As DbDataReader, _
nullValue As Integer, _
missingColumnValue As Integer _
) As Integer
public int GetInt32(
DbDataReader reader,
int nullValue,
int missingColumnValue
)
參數
- reader
型別:System.Data.Common.DbDataReader
- nullValue
型別:System.Int32
傳回的值,如果 DB 欄位是空白的。
- missingColumnValue
型別:System.Int32
傳回的值,如果找不到 DB 資料行。
傳回值
型別:System.Int32
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。