Bind a value to a named query parameter

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

Syntax

C#
IQuery SetParameter<T>(
	string name,
	T val
)
Visual Basic
Function SetParameter(Of T) ( _
	name As String, _
	val As T _
) As IQuery
Visual C++
generic<typename T>
IQuery^ SetParameter(
	String^ name, 
	T val
)

Parameters

name
Type: System..::..String
The name of the parameter
val
Type: T
The possibly null parameter value

Type Parameters

T
The parameter's NHibernate.Type

Return Value

[Missing <returns> documentation for "M:NHibernate.IQuery.SetParameter``1(System.String,``0)"]

See Also