次の方法で共有


PSDataTable.GetColumn メソッド

指定した列のみが含まれているDataRowオブジェクトを取得します。

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

構文

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

returnValue = PSDataTable.GetColumn(row, _
    colName)
public static Object GetColumn(
    DataRow row,
    string colName
)

パラメーター

戻り値

型: System.Object
指定した列のみを含むDataRowオブジェクトを返します。rowまたはcolNameのいずれかが、 null 参照 (Visual Basic のNothing )、 null 参照 (Visual Basic のNothing )が返されます。

関連項目

参照先

PSDataTable クラス

PSDataTable メンバー

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