Share via


PSDataTable.GetColumnAsInt32 method (DataRow, String)

Gets the integer 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 GetColumnAsInt32 ( _
    row As DataRow, _
    colName As String _
) As Integer
'Usage
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
)

Parameters

Return value

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

Remarks

Internally, GetColumnAsInt32(row, colName) calls GetColumnAsInt32(row, colName, 0).

See also

Reference

PSDataTable class

PSDataTable members

GetColumnAsInt32 overload

Microsoft.Office.Project.Server.Library namespace