 | ObjectExtensionsInT(T, String) Method |
Returns true if obj is equal to at least one of the elements of the user variable.
Namespace: SphinxConnector.FluentApi.UtilAssembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntaxpublic static bool In<T>(
this T obj,
string userVariable
)
<ExtensionAttribute>
Public Shared Function In(Of T) (
obj As T,
userVariable As String
) As Boolean
Parameters
- obj T
- The value to check for inequality.
- userVariable String
- The user variable.
Type Parameters
- T
- The type of obj.
Return Value
Booleantrue if
obj is equal to one of the elements of the user variable, otherwise
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Example
using (IFulltextSession fulltextSession = fulltextStore.StartSession())
{
var results = fulltextSession.Query<Product>().
Where(p => p.VendorId.In("@my_user_var")).
ToList();
}
See Also