SqlColumnBinder.GetGuid Method (DbDataReader, Boolean)
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 _
) As Guid
public Guid GetGuid(
DbDataReader reader,
bool allowNulls
)
public:
Guid GetGuid(
DbDataReader^ reader,
bool allowNulls
)
member GetGuid :
reader:DbDataReader *
allowNulls:bool -> Guid
public function GetGuid(
reader : DbDataReader,
allowNulls : boolean
) : Guid
Parameters
- reader
Type: System.Data.Common.DbDataReader
- allowNulls
Type: System.Boolean
Return Value
Type: System.Guid
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.