Bind a value to an indexed parameter.

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

Syntax

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

Parameters

position
Type: System..::.Int32
Postion of the parameter in the query, numbered from 0
val
Type: System..::.Object
The possibly null parameter value
type
Type: NHibernate.Type..::.IType
The Hibernate type

See Also