Topic Path: Symbol Reference > Classes > TQueryResult Class > TQueryResult Properties > Items Property
ContentsIndexHome
PreviousUpNext
TQueryResult.Items Property

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.