SqlCeResultSet.GetGuid Method
Returns the value of the column at the specified index as a GUID.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Function GetGuid ( _
ordinal As Integer _
) As Guid
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Guid
returnValue = instance.GetGuid(ordinal)
public override Guid GetGuid(
int ordinal
)
public:
virtual Guid GetGuid(
int ordinal
) override
abstract GetGuid :
ordinal:int -> Guid
override GetGuid :
ordinal:int -> Guid
public override function GetGuid(
ordinal : int
) : Guid
Parameters
- ordinal
Type: System.Int32
The ordinal position of the column from which to retrieve data.
Return Value
Type: System.Guid
The value of the column at the specified index.
Implements
Remarks
An exception is thrown if no field exists at the specified ordinal position.