Bind an instance of a String to an indexed parameter using an NHibernate AnsiStringType.

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

Syntax

Visual Basic (Declaration)
Function SetAnsiString ( _
	position As Integer, _
	val As String _
) As IQuery
C#
IQuery SetAnsiString(
	int position,
	string val
)
Visual C++
IQuery^ SetAnsiString(
	int position, 
	String^ val
)
JavaScript
function setAnsiString(position, val);

Parameters

position
Type: System..::.Int32
The position of the parameter in the query string, numbered from 0
val
Type: System..::.String
A non-null instance of a String.

See Also