DataTableReader.GetProviderSpecificFieldType(Int32) Método

Definição

Obtém o tipo da coluna especificada no formato específico do provedor.Gets the type of the specified column in provider-specific format.

public:
 override Type ^ GetProviderSpecificFieldType(int ordinal);
public override Type GetProviderSpecificFieldType (int ordinal);
override this.GetProviderSpecificFieldType : int -> Type
Public Overrides Function GetProviderSpecificFieldType (ordinal As Integer) As Type

Parâmetros

ordinal
Int32

O ordinal da coluna baseado em zero.The zero-based column ordinal.

Retornos

Type

O Type que é o tipo de dados do objeto.The Type that is the data type of the object.

Exceções

O índice passado estava fora do intervalo de 0 a FieldCount -1.The index passed was outside the range of 0 to FieldCount - 1.

Foi feita uma tentativa de ler ou acessar uma coluna em um DataTableReader fechado.An attempt was made to read or access a column in a closed DataTableReader.

Comentários

Como DataTableReader sempre retorna o tipo armazenado dentro do subjacente DataColumn , o valor retornado pela chamada ao GetProviderSpecificFieldType método sempre retorna o mesmo tipo que o tipo armazenado no DataTable .Because the DataTableReader always returns the type stored within the underlying DataColumn, the value returned by calling the GetProviderSpecificFieldType method always returns the same type as the type stored within the DataTable. Quando você trabalha com a DataTableReader classe, chamar o GetProviderSpecificFieldType método retorna o mesmo tipo que chama o GetType método.When you work with the DataTableReader class, calling the GetProviderSpecificFieldType method returns the same type as calling the GetType method.

Aplica-se a

Confira também