Bind a value to an indexed parameter, guessing the Hibernate type from the class of the given object.

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

Syntax

Visual Basic (Declaration)
Function SetParameter ( _
	position As Integer, _
	val As Object _
) As IQuery
C#
IQuery SetParameter(
	int position,
	Object val
)
Visual C++
IQuery^ SetParameter(
	int position, 
	Object^ val
)
JavaScript
function setParameter(position, val);

Parameters

position
Type: System..::.Int32
The position of the parameter in the query, numbered from 0
val
Type: System..::.Object
The non-null parameter value

See Also