Send feedback on this topic.
Teradata.Client.Provider
IsDBNullAsync(Int32,CancellationToken) Method



Teradata.Client.Provider Namespace > TdDataReader Class > IsDBNullAsync Method : IsDBNullAsync(Int32,CancellationToken) Method
Column ordinal (see TdDataReader.GetOrdinal).
A Threading.CancellationToken used to indicate that the asynchronous operation should be canceled.
Indicates whether the field is null.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function IsDBNullAsync( _
   ByVal ordinal As Integer, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of Boolean)
'Usage
 
Dim instance As TdDataReader
Dim ordinal As Integer
Dim cancellationToken As CancellationToken
Dim value As Task(Of Boolean)
 
value = instance.IsDBNullAsync(ordinal, cancellationToken)
public override Task<bool> IsDBNullAsync( 
   int ordinal,
   CancellationToken cancellationToken
)
public:
Task<bool>^ IsDBNullAsync( 
   int ordinal,
   CancellationToken cancellationToken
) override 

Parameters

ordinal
Column ordinal (see TdDataReader.GetOrdinal).
cancellationToken
A Threading.CancellationToken used to indicate that the asynchronous operation should be canceled.

Return Value

Returns a Task<Boolean> with a value of true if the value of the specified field (i) is null, or false if it is not.
Exceptions
ExceptionDescription
ordinal is less than zero or ordinal is equal to or greater than TdDataReader.FieldCount.
CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible.
The TdDataReader is closed.
The Advanced SQL Engine returned an error, or .NET Data Provider for Teradata detected an error.
Remarks
This method is effectively redundant since it will always complete immediately. Use the IsDBNull() method instead.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDataReader Class
TdDataReader Members
Overload List