Condividi tramite


SqlCeDataReader.GetFieldType Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets the Type that is the data type of the object.

  [Visual Basic]
  Public Overridable Function GetFieldType( _
   ByVal 
  index
   As Integer _
) As Type Implements IDataRecord.GetFieldType
[C#]
public virtual Type GetFieldType(int index
);
[C++]
public: virtual Type* GetFieldType(int index
);
[JScript]
public function GetFieldType(
   index : int) : Type;

Parameters

  • index
    The zero-based column ordinal.

Return Value

The Type that is the data type of the object.

Implements

IDataRecord.GetFieldType

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:

See Also

SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.