Delen via


Toewijzingen van OLE DB-gegevenstypen

In de volgende tabel ziet u het afgeleide .NET Framework-type voor gegevenstypen van de .NET Framework-gegevensprovider voor ADO en OLE DB (System.Data.OleDb). De getypte toegangsmethoden voor de OleDbDataReader worden ook vermeld.

ADO-type OLE DB-type .NET Framework-type .NET Framework-getypte accessor
adBigInt DBTYPE_I8 Int64 GetInt64()
adBinary DBTYPE_BYTES Byte[] GetBytes()
adBoolean DBTYPE_BOOL Booleaan Booleaanse waarde() ophalen
adBSTR DBTYPE_BSTR Snaar / Touwtje GetString()
adChapter DBTYPE_HCHAPTER Ondersteund via de DataReader. Zie Gegevens ophalen met behulp van een DataReader. GetValue()
adChar DBTYPE_STR Snaar / Touwtje GetString()
advertentievaluta DBTYPE_CY Decimaal GetDecimal()
advertentiedatum DBTYPE_DATE Datum/tijd GetDateTime()
adDBDate DBTYPE_DBDATE Datum/tijd GetDateTime()
adDBTime DBTYPE_DBTIME Datum/tijd GetDateTime()
adDBTimeStamp DBTYPE_DBTIMESTAMP Datum/tijd GetDateTime()
adDecimaal DBTYPE_DECIMAL Decimaal GetDecimal()
adDouble DBTYPE_R8 Dubbel GetDouble()
advertentiefout DBTYPE_ERROR ExterneExceptie GetValue()
adFileTime DBTYPE_FILETIME Datum/tijd GetDateTime()
adGUID DBTYPE_GUID Guid GetGuid()
adIDispatch DBTYPE_IDISPATCH * Voorwerp GetValue()
adInteger DBTYPE_I4 Int32 GetInt32()
adIUnknown DBTYPE_IUNKNOWN * Voorwerp GetValue()
adNumeric DBTYPE_NUMERIC Decimaal GetDecimal()
adPropVariant DBTYPE_PROPVARIANT Voorwerp GetValue()
adSingle DBTYPE_R4 Enkel GetFloat()
adSmallInt DBTYPE_I2 Int16 GetInt16()
adTinyInt DBTYPE_I1 Byte GetByte()
adOngesigneerdGrootGetal DBTYPE_UI8 UInt64 GetValue()
adUnsignedInt DBTYPE_UI4 UInt32 GetValue()
adUnsignedSmallInt DBTYPE_UI2 UInt16 GetValue()
adUnsignedTinyInt DBTYPE_UI1 Byte GetByte()
advertentievariant DBTYPE_VARIANT Voorwerp GetValue()
adWChar DBTYPE_WSTR Snaar / Touwtje GetString()
adUserDefined DBTYPE_UDT niet ondersteund
adVarNumeric DBTYPE_VARNUMERIC niet ondersteund

* Voor de OLE DB-typen DBTYPE_IUNKNOWN en DBTYPE_IDISPATCHis de objectverwijzing een marshallweergave van de aanwijzer.

Zie ook