PSDataTable.GetColumnAsBoolean メソッド (DataRow, String)
DataRowオブジェクトには、 Booleanの指定された列の値を取得します。
名前空間: 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 _
) As Boolean
'使用
Dim row As DataRow
Dim colName As String
Dim returnValue As Boolean
returnValue = PSDataTable.GetColumnAsBoolean(row, _
colName)
public static bool GetColumnAsBoolean(
DataRow row,
string colName
)
パラメーター
row
型: System.Data.DataRow指定された列を検索します。
colName
型: System.String列の名前を指定します。
戻り値
型: System.Boolean
指定した列の値Booleanを返します。rowまたはcolNameのいずれかが、 null 参照 (Visual Basic のNothing )、 falseが返されます。
注釈
内部的には、 GetColumnAsBoolean(row, colName)は、 GetColumnAsBoolean(row, colName, false)を呼び出します。