Click or drag to resize

DataReaderCreateQueryCondition Method (SampleStateMask, ViewStateMask, InstanceStateMask, String, String)

Creates a QueryCondition with the desired sample states, view states and instance states.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public QueryCondition CreateQueryCondition(
	SampleStateMask sampleStates,
	ViewStateMask viewStates,
	InstanceStateMask instanceStates,
	string queryExpression,
	params string[] queryParameters
)

Parameters

sampleStates
Type: OpenDDSharp.DDSSampleStateMask
The desired sample states mask.
viewStates
Type: OpenDDSharp.DDSViewStateMask
The desired view states mask.
instanceStates
Type: OpenDDSharp.DDSInstanceStateMask
The desired instance states mask.
queryExpression
Type: SystemString
The query string, which must be a subset of the SQL query language.
queryParameters
Type: SystemString
A sequence of strings which are the parameter values used in the SQL query string. The number of values in queryParameters must be equal or greater than the highest referenced n token in the queryExpression.

Return Value

Type: QueryCondition
The newly created QueryCondition on success, otherwise .
Remarks
The returned QueryCondition will be attached and belong to the DataReader.
See Also