Sphinx QLParameter CollectionContains(Object) Method
Indicates whether a SphinxQLParameter with the specified Value is contained in the collection.
Definition
Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
true if the SphinxQLParameter is in the collection; otherwise false.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public override bool Contains(
Object value
)VB
Public Overrides Function Contains (
value As Object
) As BooleanParameters
- value Object
- The Value of the SphinxQLParameter to look for in the collection.
Return Value
Booleantrue if the SphinxQLParameter is in the collection; otherwise false.
Remarks
In previous versions, this method checked whether this collection contained a SphinxQLParameter
with the Value property equal to the specified value.
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 check whether value is an instance of
SphinxQLParameter, if it is, the collection will searched for that instance. If it is not, the
collection will be searched for a parameter where Value equals
value.