Condividi tramite


PSDataTable.GetColumnAsBoolean Method (DataRow, String)

Gets the Boolean value of the specified column in a DataRow object.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared Function GetColumnAsBoolean ( _
    row As DataRow, _
    colName As String _
) As Boolean
'Usage
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
)

Parameters

Return Value

Type: System.Boolean
Returns the Boolean value of the specified column. If either row or colName are a null reference (Nothing in Visual Basic), it returns false.

Remarks

Internally, GetColumnAsBoolean(row, colName) calls GetColumnAsBoolean(row, colName, false).

See Also

Reference

PSDataTable Class

PSDataTable Members

GetColumnAsBoolean Overload

Microsoft.Office.Project.Server.Library Namespace