Bind a value to an indexed parameter.

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

Syntax

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

Parameters

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

Return Value

[Missing <returns> documentation for "M:NHibernate.IQuery.SetParameter(System.Int32,System.Object,NHibernate.Type.IType)"]

See Also