SqlCeDataReader.GetSqlGuid Method
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Gets the value of the specified column as a SqlGuid.
Public Function GetSqlGuid( _
ByVal ordinal As Integer _) As SqlGuid
[C#]
public SqlGuid GetSqlGuid(intordinal);
[C++]
public: SqlGuid GetSqlGuid(intordinal);
[JScript]
public function GetSqlGuid(
ordinal : int) : SqlGuid;
Parameters
- ordinal
The zero-based column ordinal.
Return Value
A SqlGuid.
Exceptions
Exception Type | Condition |
---|---|
InvalidOperationException | The operation is not valid. The SqlCeDataReader may be positioned after the last row in the result set. |
Remarks
No conversions are performed; therefore, the data retrieved must already be a guid or an exception is generated.
Requirements
Platforms: .NET Compact Framework
.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
See Also
SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace