Click or drag to resize
SphinxQLParameterCollectionAdd Method (Object)

Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
public override int Add(
	Object value
)

Parameters

value
Type: SystemObject
The SphinxQLParameter to add to the collection.

Return Value

Type: Int32
The index of the SphinxQLParameter object in the collection.

Implements

IListAdd(Object)
Remarks
In previous versions, this method created a SphinxQLParameter object and assigned the value parameter to the Value property. This behavior did not match other data providers. The value parameter should be an instance of SphinxQLParameter. For backwards compatibility, the old behavior will continue to work for now, but will be removed in a future release. Until that point, this method will first check whether value is an instance of SphinxQLParameter, if it is, it will be added to the collection. If it is not, a SphinxQLParameter object will be created and value will be assigned to the Value property of the newly created object. Also, a warning will be logged in this case.
See Also