次の方法で共有


PSDataTable.GetColumnAsBoolean メソッド (DataRow, String, Boolean)

Boolean 、 DataRowオブジェクト内の指定した列の値または既定値を取得します。

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

構文

'宣言
Public Shared Function GetColumnAsBoolean ( _
    row As DataRow, _
    colName As String, _
    defaultValue As Boolean _
) As Boolean
'使用
Dim row As DataRow
Dim colName As String
Dim defaultValue As Boolean
Dim returnValue As Boolean

returnValue = PSDataTable.GetColumnAsBoolean(row, _
    colName, defaultValue)
public static bool GetColumnAsBoolean(
    DataRow row,
    string colName,
    bool defaultValue
)

パラメーター

  • defaultValue
    型: System.Boolean

    既定値を返すには、 null 参照 (Visual Basic のNothing )は、 rowまたはcolNameのいずれかの場合。

戻り値

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

関連項目

参照先

PSDataTable クラス

PSDataTable メンバー

GetColumnAsBoolean オーバーロード

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