SendMailJobMergeDataReaderColumnNames Property |
Gets the array of all fields' names of the current row of the data reader.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string[] MergeDataReaderColumnNames { get; }
Public ReadOnly Property MergeDataReaderColumnNames 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 MergeDataReaderRowValues property to access elements by their names, such as
with e.MergeDataReaderRowValues[Array.IndexOf(e.MergeDataReaderColumnNames, "id")] call (in C# syntax, assuming e is SendMailJob instance).
If you know the index of the field you need to access, you can use it directly, such as e.MergeDataReaderRowValues[0].
See Also