다음을 통해 공유


SqlColumnBinder.GetGuid Method (DbDataReader, Boolean, Guid)

Retrieves the value of this column as a Guid from the given reader.

If allowNulls is true, null values will be returned as empty GUIDs.

Otherwise, a SQLException will be thrown if a null is encountered

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function GetGuid ( _
    reader As DbDataReader, _
    allowNulls As Boolean, _
    missingColumnValue As Guid _
) As Guid
public Guid GetGuid(
    DbDataReader reader,
    bool allowNulls,
    Guid missingColumnValue
)
public:
Guid GetGuid(
    DbDataReader^ reader, 
    bool allowNulls, 
    Guid missingColumnValue
)
member GetGuid : 
        reader:DbDataReader * 
        allowNulls:bool * 
        missingColumnValue:Guid -> Guid
public function GetGuid(
    reader : DbDataReader, 
    allowNulls : boolean, 
    missingColumnValue : Guid
) : Guid

Parameters

  • missingColumnValue
    Type: System.Guid

    Value to return if DB column not found.

Return Value

Type: System.Guid

.NET Framework Security

See Also

Reference

SqlColumnBinder Class

GetGuid Overload

Microsoft.TeamFoundation.Framework.Server Namespace