Records Property

Collection of records in the last response.

Syntax

public DNSRecordList Records { get; }
Public ReadOnly Property Records As DNSRecordList

Remarks

Once the query is complete, a single Response event will fire, and the following properties will contain the results:

StatusCodeThe success or error code of the DNS query.
StatusA standard string interpretation of StatusCode.
RecordsThe Records in the last DNS response.
RecordSourceThe source (type) of records being listed.

This collection is indexed from 0 to Count - 1.

Example (Loop through all fields of all records)


For i = 0 to DNSControl.Records.Count - 1
	For j = 0 to DNSControl.Records.FieldCount(i) - 1
		DNSControl.Records(i).FieldIndex = j
		DoSomethingWith(DNSControl.Records(i).FieldName, DNSControl.Records(i).FieldValue)
	Next j
Next i

This property is read-only and not available at design time.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 .NET Edition - Version 20.0 [Build 8307]