DOFSystembeginQuery Method (DOFQuery, DOFSystemQueryOperationListener)OpenDOF Object Access Library
Used by a Requestor to begin an asynchronous query with an indefinate duration for the availability of objects which provide interfaces that match the specified query.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFOperationQuery beginQuery(
	DOFQuery query,
	DOFSystemQueryOperationListener operationListener
)

Parameters

query
Type: org.opendof.core.oalDOFQuery
The query to match. If null, then the query matches all provides compatible with the system.
operationListener
Type: org.opendof.core.oalDOFSystemQueryOperationListener
The operationListener for receiving asynchronous notification. This must not be null, or no notifications can be received.

Return Value

Type: DOFOperationQuery
The query operation that can be used to cancel the query. Will not be null.
Remarks

Used by a Requestor to begin an asynchronous query with an indefinate duration for the availability of objects which provide interfaces that match the specified query.

NOTE: An application must first express interest by calling beginInterest(DOFObjectID, DOFInterestLevel) . Interest goes out on the network and looks for matching providers. query, on the other hand, searches through the local set of known providers (those found through interest).

See Also

Reference