Internet Direct (Indy)
Home
PreviousUpNext
TQueryResult.Items Property

Provides indexed access to resource records in the DNS query response.

Pascal
property Items [Index: Integer]: TResultRecord;

Items is an indexed TResultRecord property that provides access to the collection of resource records created when the resolver parses the DNS query response. 

Items ensures that read access to the collection always returns a TResultRecord instance. Applications can examine TResultRecord.RecType for the returned item to determine if another TResultRecord descendant can be used to access additional properties and methods for the resource record. 

Use casting to return an object reference that allows access to any properties or method specific to the descendant class associated with the value in TResultRecord.RecType

Items is the default property for the TQueryResult collection.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.