次の方法で共有


PSDataTable.GetColumnAsInt32 メソッド (DataRow, String)

DataRowオブジェクト内の指定した列の整数値を取得します。

名前空間:  Microsoft.Office.Project.Server.Library
アセンブリ:  Microsoft.Office.Project.Server.Library (Microsoft.Office.Project.Server.Library.dll 内)

構文

'宣言
Public Shared Function GetColumnAsInt32 ( _
    row As DataRow, _
    colName As String _
) As Integer
'使用
Dim row As DataRow
Dim colName As String
Dim returnValue As Integer

returnValue = PSDataTable.GetColumnAsInt32(row, _
    colName)
public static int GetColumnAsInt32(
    DataRow row,
    string colName
)

パラメーター

戻り値

型: System.Int32
指定した列の整数値を返します。rowまたはcolNameのいずれかが、 null 参照 (Visual Basic のNothing )、 0が返されます。

注釈

内部的には、 GetColumnAsInt32(row, colName)は、 GetColumnAsInt32(row, colName, 0)を呼び出します。

関連項目

参照先

PSDataTable クラス

PSDataTable メンバー

GetColumnAsInt32 オーバーロード

Microsoft.Office.Project.Server.Library 名前空間