次の方法で共有


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またはcolNameのいずれかが、 null 参照 (Visual Basic のNothing )、 Guid.Emptyが返されます。

注釈

内部的には、 GetColumnAsGuid(row, colName)はGetColumnAsGuid(row, colName, Guid.Empty)を呼び出します

関連項目

参照先

PSDataTable クラス

PSDataTable メンバー

GetColumnAsGuid オーバーロード

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