PSDataTable.GetColumnAsGuid Method (DataRow, String, Guid)

Gets the GUID value of the specified column in a DataRow object, or a default value.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared Function GetColumnAsGuid ( _
    row As DataRow, _
    colName As String, _
    defaultValue As Guid _
) As Guid
'Usage
Dim row As DataRow
Dim colName As String
Dim defaultValue As Guid
Dim returnValue As Guid

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

Parameters

  • defaultValue
    Type: System.Guid
    The default value to return, if either row or colName are a null reference (Nothing in Visual Basic).

Return Value

Type: System.Guid
Returns the GUID value of the specified column. If either row or colName are a null reference (Nothing in Visual Basic), it returns Guid.Empty.

See Also

Reference

PSDataTable Class

PSDataTable Members

GetColumnAsGuid Overload

Microsoft.Office.Project.Server.Library Namespace