Bind an instance of a Byte to an indexed parameter using an NHibernate ByteType.

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

Syntax

Visual Basic (Declaration)
Function SetByte ( _
	position As Integer, _
	val As Byte _
) As IQuery
C#
IQuery SetByte(
	int position,
	byte val
)
Visual C++
IQuery^ SetByte(
	int position, 
	unsigned char val
)
JavaScript
function setByte(position, val);

Parameters

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

See Also