共用方式為


PSDataTable.GetColumnAsGuid 方法 (DataRow, String)

DataRow物件中取得指定資料行的 GUID 值。

命名空間:  Microsoft.Office.Project.Server.Library
組件:  Microsoft.Office.Project.Server.Library (在 Microsoft.Office.Project.Server.Library.dll 中)

語法

'宣告
Public Shared Function GetColumnAsGuid ( _
    row As DataRow, _
    colName As String _
) As Guid
'用途
Dim row As DataRow
Dim colName As String
Dim returnValue As Guid

returnValue = PSDataTable.GetColumnAsGuid(row, _
    colName)
public static Guid GetColumnAsGuid(
    DataRow row,
    string colName
)

參數

傳回值

類型:System.Guid
會傳回指定資料行的 GUID 值。如果row或colNamenull 參考 (未執行任何動作 於 Visual Basic 中),它會傳回Guid.Empty。

備註

適用於內部, GetColumnAsGuid(row, colName)呼叫GetColumnAsGuid(row, colName, Guid.Empty)

請參閱

參照

PSDataTable 類別

PSDataTable 成員

GetColumnAsGuid 多載

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