Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression

Namespace: NHibernate.Criterion
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static bool IsIn(
	this Object projection,
	ICollection values
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function IsIn ( _
	projection As Object, _
	values As ICollection _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool IsIn(
	Object^ projection, 
	ICollection^ values
)

Parameters

projection
Type: System..::..Object

[Missing <param name="projection"/> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsIn(System.Object,System.Collections.ICollection)"]

values
Type: System.Collections..::..ICollection

[Missing <param name="values"/> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsIn(System.Object,System.Collections.ICollection)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsIn(System.Object,System.Collections.ICollection)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also