173 references to OleDbHResult
System.Data (173)
fx\src\data\System\Data\Common\NativeMethods.cs (1)
21
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetSourcesRowset(
fx\src\data\System\Data\Common\System.Data_BID.cs (5)
317
internal static void Trace(string fmtPrintfW, System.Data.OleDb.
OleDbHResult
a1) { //
318
if (((System.Data.OleDb.
OleDbHResult
.S_OK != a1) || (modFlags & ApiGroup.StatusOk) != 0) && (modFlags & ApiGroup.Trace) != 0 && modID != NoData)
323
internal static void Trace(string fmtPrintfW, System.Data.OleDb.
OleDbHResult
a1, System.String a2) {
329
internal static void Trace(string fmtPrintfW, System.Data.OleDb.
OleDbHResult
a1, System.IntPtr a2) {
335
internal static void Trace(string fmtPrintfW, System.Data.OleDb.
OleDbHResult
a1, System.Int32 a2) {
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (40)
472
static internal extern System.Data.OleDb.
OleDbHResult
GetErrorInfo(
543
[PreserveSig] System.Data.OleDb.
OleDbHResult
Close();
574
[PreserveSig] System.Data.OleDb.
OleDbHResult
NextRecordset(
606
[PreserveSig] System.Data.OleDb.
OleDbHResult
Close();
671
[PreserveSig] System.Data.OleDb.
OleDbHResult
CreateAccessor(
686
[PreserveSig] System.Data.OleDb.
OleDbHResult
ReleaseAccessor(
701
[PreserveSig, ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] System.Data.OleDb.
OleDbHResult
ReleaseChapter(
715
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetColumnInfo(
732
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetAvailableColumns(
746
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetColumnsRowset(
764
[PreserveSig] System.Data.OleDb.
OleDbHResult
Prepare(
781
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetProperties(
792
[PreserveSig] System.Data.OleDb.
OleDbHResult
SetProperties(
803
[PreserveSig] System.Data.OleDb.
OleDbHResult
Cancel();
813
[PreserveSig] System.Data.OleDb.
OleDbHResult
Execute(
829
[PreserveSig] System.Data.OleDb.
OleDbHResult
SetCommandText(
847
[PreserveSig] System.Data.OleDb.
OleDbHResult
SetParameterInfo(
865
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetKeywords(
876
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetLiteralInfo(
894
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetProperties(
900
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetPropertyInfo(
907
[PreserveSig] System.Data.OleDb.
OleDbHResult
SetProperties(
926
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetRowset(
942
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetSchemas(
953
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetSource(
956
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetDescription(
985
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetCustomErrorObject( // may return E_NOINTERFACE when asking for IID_ISQLErrorInfo
1036
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetResult(
1062
[PreserveSig] System.Data.OleDb.
OleDbHResult
OpenRowset(
1075
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetColumns(
1093
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetData(
1105
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetNextRows(
1119
[PreserveSig] System.Data.OleDb.
OleDbHResult
ReleaseRows(
1139
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetProperties(
1145
[PreserveSig] System.Data.OleDb.
OleDbHResult
GetReferencedRowset(
1173
[PreserveSig] System.Data.OleDb.
OleDbHResult
StartTransaction(
1197
internal delegate System.Data.OleDb.
OleDbHResult
IDataInitializeGetDataSource(
1207
internal delegate System.Data.OleDb.
OleDbHResult
IDBInitializeInitialize(
1212
internal delegate System.Data.OleDb.
OleDbHResult
IDBCreateSessionCreateSession(
1220
internal delegate System.Data.OleDb.
OleDbHResult
IDBCreateCommandCreateCommand(
fx\src\data\System\Data\OleDb\DBBindings.cs (1)
330
internal
OleDbHResult
CreateAccessor(UnsafeNativeMethods.IAccessor iaccessor, int flags) {
fx\src\data\System\Data\OleDb\DBPropSet.cs (6)
49
internal DBPropSet(UnsafeNativeMethods.IDBProperties properties, PropertyIDSet propidset, out
OleDbHResult
hr) : this() {
66
internal DBPropSet(UnsafeNativeMethods.IRowsetInfo properties, PropertyIDSet propidset, out
OleDbHResult
hr) : this() {
83
internal DBPropSet(UnsafeNativeMethods.ICommandProperties properties, PropertyIDSet propidset, out
OleDbHResult
hr) : this() {
100
private void SetLastErrorInfo(
OleDbHResult
lastErrorHr) {
105
OleDbHResult
errorInfoHr = UnsafeNativeMethods.GetErrorInfo(0, out errorInfo); // 0 - IErrorInfo exists, 1 - no IErrorInfo
106
if ((errorInfoHr ==
OleDbHResult
.S_OK) && (errorInfo != null)) {
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (8)
161
static internal OleDbException NoErrorInformation(string provider,
OleDbHResult
hr, Exception inner) {
269
static internal string NoErrorMessage(
OleDbHResult
errorcode) {
272
static internal string FailedGetDescription(
OleDbHResult
errorcode) {
275
static internal string FailedGetSource(
OleDbHResult
errorcode) {
283
static internal
OleDbHResult
GetErrorDescription(UnsafeNativeMethods.IErrorInfo errorInfo,
OleDbHResult
hresult, out string message) {
285
OleDbHResult
hr = errorInfo.GetDescription(out message);
635
static internal string ELookup(
OleDbHResult
hr) {
fx\src\data\System\Data\OleDb\OleDbCommand.cs (24)
400
OleDbHResult
hr = bindings.CreateAccessor(iaccessor, ODB.DBACCESSOR_PARAMETERDATA);
414
OleDbHResult
hr = commandWithParameters.SetParameterInfo((IntPtr)bindInfo.Length, ordinals, bindInfo);
430
OleDbHResult
hr =
OleDbHResult
.S_OK;
441
if (
OleDbHResult
.DB_E_CANTCANCEL != hr) {
775
OleDbHResult
hr;
781
if (
OleDbHResult
.E_NOINTERFACE != hr) {
790
OleDbHResult
hr;
811
OleDbHResult
hr;
817
if (
OleDbHResult
.DB_E_NOTFOUND == hr) { // MDAC 76110
821
else if (
OleDbHResult
.E_NOINTERFACE != hr) {
830
private void ExecuteCommandTextErrorHandling(
OleDbHResult
hr) {
838
private Exception ExecuteCommandTextSpecialErrorHandling(
OleDbHResult
hr, Exception e) {
839
if (((
OleDbHResult
.DB_E_ERRORSOCCURRED == hr) || (
OleDbHResult
.DB_E_BADBINDINFO == hr)) && (null != _dbBindings)) { // MDAC 66026, 67039
893
OleDbHResult
hr =
OleDbHResult
.S_OK;
930
if (
OleDbHResult
.DB_E_ERRORSOCCURRED == hr) {
1073
OleDbHResult
hr;
1134
OleDbHResult
hr;
1147
private void ProcessResults(
OleDbHResult
hr) {
1152
private void ProcessResultsNoReset(
OleDbHResult
hr) {
1159
OleDbHResult
hr;
1210
OleDbHResult
hr = icommandProperties.SetProperties(propSet.PropertySetCount, propSet);
fx\src\data\System\Data\OleDb\OleDbConnection.cs (7)
496
internal void OnInfoMessage(UnsafeNativeMethods.IErrorInfo errorInfo,
OleDbHResult
errorCode) {
537
OleDbHResult
hr;
547
if (
OleDbHResult
.DB_E_ERRORSOCCURRED == hr) {
578
static internal Exception ProcessResults(
OleDbHResult
hresult, OleDbConnection connection, object src) {
587
OleDbHResult
hr = UnsafeNativeMethods.GetErrorInfo(0, out errorInfo); // 0 - IErrorInfo exists, 1 - no IErrorInfo
588
if ((
OleDbHResult
.S_OK == hr) && (null != errorInfo)) {
599
if (
OleDbHResult
.DB_E_OBJECTOPEN == hresult) {
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (12)
115
OleDbHResult
hr = _datasrcwrp.InitializeAndCreateSession(constr, ref _sessionwrp);
226
OleDbHResult
hr = _sessionwrp.CreateCommand(ref icommandText);
230
if (
OleDbHResult
.E_NOINTERFACE != hr) { // MDAC 57856
348
OleDbHResult
hr;
392
OleDbHResult
hr;
397
if (
OleDbHResult
.DB_E_ERRORSOCCURRED != hr) {
448
OleDbHResult
hr;
507
OleDbHResult
hr;
511
if (
OleDbHResult
.DB_E_ERRORSOCCURRED != hr) {
539
OleDbHResult
hr;
583
OleDbHResult
hr;
624
private void ProcessResults(
OleDbHResult
hr) {
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (1)
430
OleDbHResult
hr;
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (4)
283
OleDbHResult
hr = ((UnsafeNativeMethods.Recordset15)adodb).NextRecordset(out recordsAffected, out nextresult); // MDAC 78415
294
OleDbHResult
hresult = ODB.GetErrorDescription(errorInfo, hr, out message);
432
OleDbHResult
hr;
448
OleDbHResult
hresult = ODB.GetErrorDescription(errorInfo, hr, out message);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (19)
427
Bid.Trace("<oledb.IUnknown.QueryInterface|API|OLEDB|RET> %08X{HRESULT}\n",
OleDbHResult
.E_NOINTERFACE);
440
OleDbHResult
hr;
568
OleDbHResult
hr;
591
Bid.Trace("<oledb.IUnknown.QueryInterface|API|OLEDB|RET> %08X{HRESULT}\n",
OleDbHResult
.E_NOINTERFACE);
870
OleDbHResult
hr;
1059
private void ProcessResults(
OleDbHResult
hr) {
1111
OleDbHResult
hr;
1128
if ((
OleDbHResult
.DB_S_NORESULT == hr) || (
OleDbHResult
.E_NOINTERFACE == hr)) { // MDAC 70874
1142
Debug.Assert(
OleDbHResult
.DB_E_OBJECTOPEN == hr, "unexpected");
1196
OleDbHResult
hr;
1214
if (
OleDbHResult
.DB_S_NORESULT == hr) {
1343
OleDbHResult
hr = dbBindings[i].CreateAccessor(iaccessor, ODB.DBACCESSOR_ROWDATA);
1535
OleDbHResult
hr = 0;
1573
_isRead = ((
OleDbHResult
.DB_S_ENDOFROWSET != hr) || (0 < (int)_rowFetchedCount)); // MDAC 59264
1581
OleDbHResult
hr = 0;
1624
OleDbHResult
hr;
1652
OleDbHResult
hr;
1704
OleDbHResult
hr;
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (1)
63
OleDbHResult
hr = srcrowset.GetSourcesRowset(ADP.PtrZero, ODB.IID_IRowset, propCount, propSets, out value);
fx\src\data\System\Data\OleDb\OleDbError.cs (3)
25
OleDbHResult
hr;
36
if (
OleDbHResult
.DB_E_NOLOCALE == hr) { // MDAC 87303
62
if (
OleDbHResult
.DB_E_NOLOCALE == hr) { // MDAC 87303
fx\src\data\System\Data\OleDb\OleDbException.cs (6)
25
internal OleDbException(string message,
OleDbHResult
errorCode, Exception inner) : base(message, inner) {
35
private OleDbException(string message, Exception inner, string source,
OleDbHResult
errorCode, OleDbErrorCollection errors) : base(message, inner) { // MDAC 84364
80
static internal OleDbException CreateException(UnsafeNativeMethods.IErrorInfo errorInfo,
OleDbHResult
errorCode, Exception inner) { // MDAC 84364
84
OleDbHResult
hr = 0;
129
return new OleDbException(builder.ToString(), null, exceptions[0].Source, (
OleDbHResult
)exceptions[0].ErrorCode, errors);
147
return ODB.ELookup((
OleDbHResult
) value);
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (15)
37
internal WrappedTransaction(UnsafeNativeMethods.ITransactionLocal transaction, int isolevel, out
OleDbHResult
hr) : base(transaction) {
54
internal
OleDbHResult
Abort() {
56
OleDbHResult
hr;
65
hr = (
OleDbHResult
)NativeOledbWrapper.ITransactionAbort(DangerousGetHandle());
78
internal
OleDbHResult
Commit() {
80
OleDbHResult
hr;
89
hr = (
OleDbHResult
)NativeOledbWrapper.ITransactionCommit(DangerousGetHandle());
90
if ((0 <= (int)hr) || (
OleDbHResult
.XACT_E_NOTRANSACTION == hr)) {
107
OleDbHResult
hr = (
OleDbHResult
)NativeOledbWrapper.ITransactionAbort(base.handle);
210
OleDbHResult
hr;
246
OleDbHResult
hr = _transaction.Commit();
288
private void ProcessResults(
OleDbHResult
hr) {
308
/*protected virtual*/internal
OleDbHResult
RollbackInternal(bool exceptionHandling) {
309
OleDbHResult
hr = 0;
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (9)
47
OleDbHResult
hr;
68
if (
OleDbHResult
.REGDB_E_CLASSNOTREG == hr) {
93
internal
OleDbHResult
InitializeAndCreateSession(OleDbConnectionString constr, ref SessionWrapper sessionWrapper) {
94
OleDbHResult
hr;
137
if ((0 <= hr) || (
OleDbHResult
.DB_E_ALREADYINITIALIZED == hr)) {
140
hr = (
OleDbHResult
)QueryInterface(base.handle, ref ODB.IID_IDBCreateSession, ref idbCreateSession);
296
internal
OleDbHResult
CreateCommand(ref object icommandText) {
298
OleDbHResult
hr =
OleDbHResult
.E_NOINTERFACE;
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
44
OleDbHResult
hr;
fx\src\data\System\Data\OleDb\RowBinding.cs (4)
98
internal
OleDbHResult
CreateAccessor(UnsafeNativeMethods.IAccessor iaccessor, int flags, ColumnBinding[] bindings) {
99
OleDbHResult
hr = 0;
297
OleDbHResult
hr;
434
OleDbHResult
hr = chapteredRowset.ReleaseChapter(chapter, out refCount);
fx\src\data\System\Data\OleDb\SafeHandles.cs (6)
32
internal DualCoTaskMem(UnsafeNativeMethods.IDBInfo dbInfo, int[] literals, out int literalCount, out IntPtr literalInfo, out
OleDbHResult
hr) : this() {
42
internal DualCoTaskMem(UnsafeNativeMethods.IColumnsInfo columnsInfo, out IntPtr columnCount, out IntPtr columnInfos, out
OleDbHResult
hr) : this() {
50
internal DualCoTaskMem(UnsafeNativeMethods.IDBSchemaRowset dbSchemaRowset, out int schemaCount, out IntPtr schemaGuids, out IntPtr schemaRestrictions, out
OleDbHResult
hr) : this() {
58
internal DualCoTaskMem(UnsafeNativeMethods.IColumnsRowset icolumnsRowset, out IntPtr cOptColumns, out
OleDbHResult
hr) : base(IntPtr.Zero, true) {
156
OleDbHResult
hr = (
OleDbHResult
)NativeOledbWrapper.IChapteredRowsetReleaseChapter(base.handle, chapter);