Description

Returns an McDBQuery instance initialized to query the McDBNode instances in open databases represented by this McDBDatabases collection.

Return Type

A McDBQuery object.  

Syntax

object.CreateQuery

The CreateQuery Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBDatabases.

Remarks

McDBQuery objects are attached to one or more McDBDatabase object(s) that serve as the context for that query. That is, the only McDBNode instances returned by the McDBQuery will be contained within these McDBDatabase objects. This method constructs a properly initialized McDBQuery object to query McDBNode instances in all OPEN databases in this McDBDatabases collection. This method is an alternative to using the McDBQuery.AttachDatabase interface method.

Notes

The databases attached to the returned McDBQuery are those within this McDBDatabases that were open at the time CreateQuery was called. Opening or adding McDBDatabase instances after this call will have no effect on the issued McDBQuery, which will NOT contain them in its context.