Bind multiple values to a named query parameter, guessing the Hibernate type from the class of the first object in the collection. This is useful for binding a list of values to an expression such as foo.bar in (:value_list)

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

Syntax

Visual Basic (Declaration)
Function SetParameterList ( _
	name As String, _
	vals As ICollection _
) As IMultiQuery
C#
IMultiQuery SetParameterList(
	string name,
	ICollection vals
)
Visual C++
IMultiQuery^ SetParameterList(
	String^ name, 
	ICollection^ vals
)
JavaScript
function setParameterList(name, vals);

Parameters

name
Type: System..::.String
The name of the parameter
vals
Type: System.Collections..::.ICollection
A collection of values to list

See Also