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
)
パラメーター
row
型: System.Data.DataRow指定された列を検索します。
colName
型: System.String列の名前を指定します。
戻り値
型: System.Guid
指定した列の GUID 値を返します。rowまたはcolNameのいずれかが、 null 参照 (Visual Basic のNothing )、 Guid.Emptyが返されます。
注釈
内部的には、 GetColumnAsGuid(row, colName)はGetColumnAsGuid(row, colName, Guid.Empty)を呼び出します