Metodo QSSql.ReadInt

QSAdoNet

Metodo QSSqlReadInt

Legge un valore int da un oggetto DbDataReader e lo restituisce.

Namespace:  QSAdoNet
Assembly:  QSAdoNet (in QSAdoNet.dll) Versione: 1.0.0.0 (1.0.0.0)
Sintassi
public static int ReadInt(
	DbDataReader rd,
	int defval,
	ref int idx
)
Public Shared Function ReadInt ( 
	rd As DbDataReader,
	defval As Integer,
	ByRef idx As Integer
) As Integer
public:
static int ReadInt(
	DbDataReader^ rd, 
	int defval, 
	int% idx
)
static member ReadInt : 
        rd : DbDataReader * 
        defval : int * 
        idx : int byref -> int 

Parametri

rd
Tipo: System.Data.CommonDbDataReader
Oggetto DbDataReader dal quale leggere il valore.
defval
Tipo: SystemInt32
Valore di default da restituire in caso di valore NULL.
idx
Tipo: SystemInt32
Indice al quale si trova il campo da leggere. Questo indice viene incrementato di 1 prima di restituire il valore al chiamante.

Valore di ritorno

Tipo: Int32
Vedi anche