'DeclarationPublic Overloads Function GetFieldValueAsync(Of T)( _ ByVal ordinal As System.Integer, _ ByVal cancellationToken As System.Threading.CancellationToken _ ) As System.Threading.Tasks.Task(Of T)
'UsageDim instance As VistaDBDataReader Dim ordinal As System.Integer Dim cancellationToken As System.Threading.CancellationToken Dim value As System.Threading.Tasks.Task(Of T) value = instance.GetFieldValueAsync(Of T)(ordinal, cancellationToken)
public System.Threading.Tasks.Task<T> GetFieldValueAsync<T>( System.int ordinal, System.Threading.CancellationToken cancellationToken )
Parameters
- ordinal
- The type of the value to be returned.
- cancellationToken
- The cancellation instruction, which propagates a notification that operations should be canceled. This does not guarantee the cancellation. A setting of CancellationToken.None makes this method equivalent to System.Data.Common.DbDataReader.GetFieldValueAsync``1(System.Int32). The returned task must be marked as cancelled.
Type Parameters
- T
- The type of the value to be returned.
Return Value
The type of the value to be returned.