Sphinx QLParameter CollectionAdd(Object) Method
Adds a SphinxQLParameter item to the DbParameterCollection.
Definition
Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The index of the SphinxQLParameter object in the collection.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public override int Add(
Object value
)VB
Public Overrides Function Add (
value As Object
) As IntegerParameters
- value Object
- The SphinxQLParameter to add to the collection.
Return Value
Int32The index of the SphinxQLParameter object in the collection.
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 worked
in previous version, but has now been removed.
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.