共用方式為


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或colNamenull 參考 (未執行任何動作 於 Visual Basic 中),它會傳回null 參考 (未執行任何動作 於 Visual Basic 中)。

請參閱

參照

PSDataTable 類別

PSDataTable 成員

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