VerifyingEventArgsDataReaderColumnNames Property |
Gets the array of all fields' names of the current row of the data reader.
Namespace: MailBee.AddressCheckAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string[] DataReaderColumnNames { get; }
Public ReadOnly Property DataReaderColumnNames As String()
Get
Property Value
Type:
StringA reference to the string array where each item is the result of
GetName(Int32) call for each column, made at the moment when the component extracted data
from the current data row, or a null reference (
Nothing in Visual Basic) in case if the input wasn't
IDataReader.
Remarks Can be used in conjunction with DataReaderRowValues property to access elements by their names, such as
with e.DataReaderRowValues[Array.IndexOf(e.DataReaderColumnNames, "id")] call (in C# syntax, assuming e is VerifyingEventArgs instance).
If you know the index of the field you need to access, you can use it directly, such as e.DataReaderRowValues[0].
See Also