SqlCeDataReader.GetName Method
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Gets the name of the specified column.
[Visual Basic] Public Overridable Function GetName( _ ByVal index As Integer _ ) As String Implements IDataRecord.GetName [C#] public virtual string GetName(int index ); [C++] public: virtual String* GetName(int index ); [JScript] public function GetName( index : int) : String;
Parameters
- index
The zero-based column ordinal.
Return Value
The name of the specified column.
Implements
Exceptions
Exception Type | Condition |
---|---|
InvalidOperationException | The operation is not valid. The SqlCeDataReader may be positioned after the last row in the result set. |
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 | GetOrdinal
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.