Records Property
Collection of records in the last response.
Syntax
getRecords(): DNSRecordList;
Default Value
Remarks
Once the query is complete, a single Response event will fire, and the following properties will contain the results:
StatusCode | The success or error code of the DNS query. |
Status | A standard string interpretation of StatusCode. |
Records | The Records in the last DNS response. |
RecordSource | The source (type) of records being listed. |
Example (Loop through all fields of all records)
For i = 0 to DNSControl.RecordsCount - 1 For j = 0 to DNSControl.RecordFieldCount(i) - 1 DNSControl.Records(i).RecordFieldIndex(i) = j DoSomethingWith(DNSControl.RecordFieldName(i), DNSControl.RecordFieldValue(i)) Next j Next i
This property is read-only and not available at design time.