Apply an "in" constraint to the named property

Namespace:  NHibernate.Expression
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function In ( _
	propertyName As String, _
	values As ICollection _
) As AbstractCriterion
C#
public static AbstractCriterion In(
	string propertyName,
	ICollection values
)
Visual C++
public:
static AbstractCriterion^ In(
	String^ propertyName, 
	ICollection^ values
)
JavaScript
NHibernate.Expression.Expression.in = function(propertyName, values);

Parameters

propertyName
Type: System..::.String
The name of the Property in the class.
values
Type: System.Collections..::.ICollection
An ICollection of values.

Return Value

An InExpression.

See Also