VerifyingEventArgsDataReaderColumnNames Property
Gets the array of all fields' names of the current row of the data reader.

Namespace: MailBee.AddressCheck
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public string[] DataReaderColumnNames { get; }

Property Value

Type: String
A 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.

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