3315 references to ADP
System.Data (3315)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (5)
544throw ADP.ArgumentOutOfRange("typeName"); 547if ((!ADP.IsEmpty(typeSpecificNamePart1) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart1.Length) 548|| (!ADP.IsEmpty(typeSpecificNamePart2) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart2.Length) 549|| (!ADP.IsEmpty(typeSpecificNamePart3) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart3.Length)) { 550throw ADP.ArgumentOutOfRange("typeName");
fx\src\data\Microsoft\SqlServer\Server\SmiConnection.cs (4)
39System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 50System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
fx\src\data\Microsoft\SqlServer\Server\SmiContext.cs (2)
74System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink.cs (10)
43System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 62System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 99System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 110System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 124System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
fx\src\data\Microsoft\SqlServer\Server\SmiEventStream.cs (2)
26System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
fx\src\data\Microsoft\SqlServer\Server\SmiMetaDataProperty.cs (4)
62throw ADP.InternalError(ADP.InternalErrorCode.InvalidSmiCall); 88throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall);
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (146)
32throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 86throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 99throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 109throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 119throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 129throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 139throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 149throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 159throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 169throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 179throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 189throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 199throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 209throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 219throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 229throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 239throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 249throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 259throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 269throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 279throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 289throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 299throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 309throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 319throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 329throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 339throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 349throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 359throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 369throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 379throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 389throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 399throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 409throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 419throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 429throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 439throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 452throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 462throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 472throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 482throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 492throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 502throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 512throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 522throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 532throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 542throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 552throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 562throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 572throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 582throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 592throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 602throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 612throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 622throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 632throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 642throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 652throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 662throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 672throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 682throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 692throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 702throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 712throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 722throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 732throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 742throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 752throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 762throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 772throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 782throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 792throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 802throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (156)
29throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 44throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 93throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 109throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 120throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 132throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 144throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 157throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 167throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 177throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 187throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 197throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 207throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 217throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 227throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 237throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 247throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 257throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 267throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 277throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 287throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 297throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 307throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 317throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 327throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 337throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 347throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 357throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 367throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 377throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 387throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 397throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 407throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 417throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 427throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 437throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 447throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 457throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 467throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 477throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 487throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 497throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 510throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 520throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 530throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 540throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 550throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 560throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 570throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 580throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 590throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 600throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 610throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 620throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 630throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 640throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 650throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 660throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 670throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 680throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 690throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 700throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 710throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 720throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 730throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 740throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 750throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 760throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 770throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 780throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 790throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 800throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 810throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 820throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 830throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 840throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 850throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 860throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod );
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (1)
81throw ADP.ArgumentOutOfRange("value");
fx\src\data\Microsoft\SqlServer\Server\SmiTypedGetterSetter.cs (164)
37throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 40throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 48throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 51throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 58throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 61throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 68throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 71throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 79throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 82throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 87throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 90throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 97throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 100throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 105throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 108throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 113throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 116throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 123throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 126throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 133throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 136throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 143throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 146throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 153throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 156throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 163throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 166throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 173throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 176throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 183throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 186throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 193throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 196throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 203throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 205throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 212throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 214throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 221throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 227throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 230throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 241throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 244throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 251throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 254throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 261throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 264throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 274throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 277throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 282throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 285throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 295throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 298throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 303throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 306throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 313throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 316throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 323throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 326throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 333throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 336throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 343throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 346throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 353throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 356throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 363throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 366throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 373throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 376throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 383throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 386throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 393throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 396throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 403throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 405throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 412throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 414throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 425throw System.Data.Common.ADP.InternalError( System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod ); 431throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 434throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod); 440throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.InvalidSmiCall); 443throw System.Data.Common.ADP.InternalError(System.Data.Common.ADP.InternalErrorCode.UnimplementedSMIMethod);
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (12)
99throw ADP.ArgumentNull("values"); 155throw ADP.NotSupported(); 226throw ADP.NotSupported(); 261throw ADP.ArgumentNull("values"); 359throw ADP.ArgumentNull( "values" ); 373throw ADP.InvalidCast(); 397throw ADP.InvalidCast(); 425throw ADP.NotSupported(); 581throw ADP.ArgumentNull( "metadata" ); 589throw ADP.ArgumentNull( "metadata["+i+"]" ); 594throw ADP.VersionDoesNotSupportDataType(_columnSmiMetaData[i].TypeName); 671throw ADP.IndexOutOfRange( ordinal );
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (7)
49throw ADP.ArgumentNull( "command" ); 72throw ADP.ClosedConnectionError(); 92ADP.CheckArgumentNull(message, "message"); 119ADP.CheckArgumentNull(reader, "reader"); 168ADP.CheckArgumentNull(record, "record"); 218ADP.CheckArgumentNull(record, "record"); 250ADP.CheckArgumentNull(record, "record");
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (4)
419throw ADP.ArgumentOutOfRange("fieldOffset"); 427throw ADP.ArgumentOutOfRange("fieldOffset"); 452throw ADP.ArgumentOutOfRange("fieldOffset"); 460throw ADP.ArgumentOutOfRange("fieldOffset");
fx\src\data\Microsoft\SqlServer\Server\SqlTriggerContext.cs (1)
56throw ADP.IndexOutOfRange(columnOrdinal); // if there aren't any columns, that means IndexOutOfRange too...
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (59)
67throw ADP.InvalidCast(); 79throw ADP.InvalidCast(); 87throw ADP.InvalidCast(); 178throw ADP.InvalidCast(); 196throw ADP.InvalidCast(); 209throw ADP.InvalidCast(); 230throw ADP.InvalidCast(); 242throw ADP.InvalidCast(); 254throw ADP.InvalidCast(); 266throw ADP.InvalidCast(); 278throw ADP.InvalidCast(); 290throw ADP.InvalidCast(); 302throw ADP.InvalidCast(); 316throw ADP.InvalidCast(); 330throw ADP.InvalidCast(); 344throw ADP.InvalidCast(); 371throw ADP.InvalidCast(); 419throw ADP.InvalidCast(); 449throw ADP.InvalidCast(); 470throw ADP.InvalidCast(); 492throw ADP.InvalidCast(); 514throw ADP.InvalidCast(); 536throw ADP.InvalidCast(); 558throw ADP.InvalidCast(); 579throw ADP.InvalidCast(); 600throw ADP.InvalidCast(); 622throw ADP.InvalidCast(); 654throw ADP.InvalidCast(); 675throw ADP.InvalidCast(); 690throw ADP.InvalidCast(); 699throw ADP.InvalidCast(); 711throw ADP.InvalidCast(); 729throw ADP.InvalidCast(); 756throw ADP.InvalidCast(); 781throw ADP.InvalidCast(); 1352throw ADP.ArgumentNull( "buffer" ); 1371throw ADP.InvalidDataLength( length ); 1387throw ADP.ArgumentNull( "buffer" ); 1410throw ADP.InvalidCast(); 1559throw ADP.InvalidCast(); 1589case ExtendedClrTypeCode.Invalid: throw ADP.UnknownDataType( value.GetType() ); 1606case ExtendedClrTypeCode.SByte: throw ADP.InvalidCast(); 1609case ExtendedClrTypeCode.UInt16: throw ADP.InvalidCast(); 1610case ExtendedClrTypeCode.UInt32: throw ADP.InvalidCast(); 1611case ExtendedClrTypeCode.UInt64: throw ADP.InvalidCast(); 1836throw ADP.NotSupported(); 2028throw ADP.NotSupported(); 2149throw ADP.NotSupported(); 2310throw ADP.NotSupported(); 2422throw ADP.InvalidMetaDataValue(); 2430throw ADP.InvalidMetaDataValue(); 2630if (!ADP.IsCatchableExceptionType(e)) { 2717if ( ADP.IsNull( value ) ) { 2733throw ADP.InvalidCast(); 2805throw ADP.NegativeParameter("fieldOffset"); 2809throw ADP.InvalidDestinationBufferIndex( bufferLength, bufferOffset, "bufferOffset" ); 2823throw ADP.InvalidDestinationBufferIndex( bufferLength, bufferOffset, "bufferOffset" ); 2828throw ADP.InvalidBufferSizeOrIndex( length, bufferOffset ); 2831throw ADP.InvalidDataLength( length );
fx\src\data\System\Data\CodeGen\datacache.cs (2)
651if (!Common.ADP.IsEmpty(column.Prefix)) { 681if (!Common.ADP.IsEmpty(table.Prefix)) {
fx\src\data\System\Data\Common\AdapterUtil.cs (77)
112Debug.Assert(ADP.IsCatchableExceptionType(e), "Invalid exception type, should have been re-thrown!"); 116Debug.Assert(ADP.IsCatchableExceptionType(e), "Invalid exception type, should have been re-thrown!"); 409return ADP.ArgumentOutOfRange(Res.GetString(Res.ADP_InvalidEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name); 413return ADP.ArgumentOutOfRange(Res.GetString(Res.ADP_NotSupportedEnumerationValue, type.Name, value, method), type.Name); 715return ADP.NotSupportedEnumerationValue(typeof(Microsoft.SqlServer.Server.Format), value.ToString(), method); 780return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidDataDirectory)); 789return ADP.Argument(Res.GetString(Res.ADP_InvalidMinMaxPoolSizeValues)); 792return ADP.Argument(Res.GetString(Res.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException); 796return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureAndClearCredential)); 800return ADP.Argument(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureAndClearCredential)); 804return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity)); 808return ADP.Argument(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity)); 813return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndContextConnection)); 818return ADP.Argument(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndContextConnection)); 822return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndContextConnection)); 826return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity)); 830return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword)); 834return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndCredential)); 838return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfAccessTokenAndAuthentication)); 842return ADP.InvalidOperation(Res.GetString(Res.ADP_InvalidMixedUsageOfCredentialAndAccessToken)); 924return ADP.InvalidOperation(Res.GetString(Res.ADP_PooledOpenTimeout)); 928return ADP.TimeoutException(Res.GetString(Res.ADP_NonPooledOpenTimeout)); 997if (ADP.IsEmpty(tableName)) { 1033return CollectionIndexString(typeof(DataColumnMapping), ADP.DataSetColumn, cacheColumn, typeof(DataColumnMappingCollection)); 1039return CollectionIndexString(typeof(DataColumnMapping), ADP.SourceColumn, srcColumn, typeof(DataColumnMappingCollection)); 1048return CollectionUniqueValue(typeof(DataColumnMapping), ADP.SourceColumn, srcColumn); 1064return CollectionIndexString(typeof(DataTableMapping), ADP.DataSetTable, cacheTable, typeof(DataTableMappingCollection)); 1076return CollectionIndexString(typeof(DataTableMapping), ADP.SourceTable, srcTable, typeof(DataTableMappingCollection)); 1079return CollectionUniqueValue(typeof(DataTableMapping), ADP.SourceTable, srcTable); 1101return InvalidOperation(Res.GetString(Res.ADP_OpenConnectionRequired, method, ADP.ConnectionStateMsg(state))); 1130throw ADP.InvalidStatementType(statementType); 1178throw ADP.InvalidStatementType(statementType); 1181return InvalidOperation(Res.GetString(resource, ADP.ConnectionStateMsg(state))); 1233return ADP.Argument(Res.GetString(Res.ADP_InvalidMetaDataValue)); 1316throw ADP.InvalidStatementType(statementType); 1348throw ADP.InvalidStatementType(statementType); 1370return Argument(Res.GetString(Res.ADP_InvalidCommandTimeout, value.ToString(CultureInfo.InvariantCulture)), ADP.CommandTimeout); 1401return InvalidOperation(Res.GetString(Res.ADP_ConnectionAlreadyOpen, ADP.ConnectionStateMsg(state))); 1413return InvalidOperation(Res.GetString(Res.ADP_OpenConnectionPropertySet, property, ADP.ConnectionStateMsg(state))); 1582return ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value.ToString((IFormatProvider)null))); 1585return ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value.ToString())); 1589return ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value)); 1627return CollectionIndexString(parameterType, ADP.ParameterName, parameterName, collection.GetType()); 1675return ADP.Argument(Res.GetString(Res.MDF_InvalidRestrictionValue, collectionName, restrictionName, restrictionValue)); 1764return ADP.InvalidOperation(Res.GetString(Res.ADP_UnableToCreateBooleanLiteral)); 1880static internal readonly bool IsPlatformNT5 = (ADP.IsWindowsNT && (Environment.OSVersion.Version.Major >= 5)); 1984if (ADP.IsEmpty(quotePrefix) == false) { 1989if (ADP.IsEmpty(quoteSuffix) == false) { 2004throw ADP.LiteralValueIsInvalid(dataTypeName); 2015throw ADP.LiteralValueIsInvalid(dataTypeName); 2050if (ADP.IsEmpty(decimalSeparator) == true) { 2088throw ADP.ComputerNameEx(getComputerNameExError); 2094throw ADP.ComputerNameEx(Marshal.GetLastWin32Error()); 2102value = ADP.MachineName(); 2137throw ADP.ConfigWrongNumberOfValues(errorString); 2139return ADP.GetXmlStream(values[0],errorString); 2154throw ADP.ConfigUnableToLoadXmlMetaDataFile(errorString); 2163if (ADP.GetFullPath(fullPath) != fullPath) { 2164throw ADP.ConfigUnableToLoadXmlMetaDataFile(errorString); 2168XmlStream = ADP.GetFileStream(fullPath); 2172if (!ADP.IsCatchableExceptionType(e)) { 2175throw ADP.ConfigUnableToLoadXmlMetaDataFile(errorString); 2194ADP.TraceExceptionWithoutRethrow(e); 2214ADP.TraceExceptionWithoutRethrow(e); 2230version = (string)ADP.LocalMachineRegistryValue("Software\\Microsoft\\DataAccess", "FullInstallVer"); 2231if (ADP.IsEmpty(version)) { 2232string filename = (string)ADP.ClassesRootRegistryValue(System.Data.OleDb.ODB.DataLinks_CLSID, ADP.StrEmpty); 2233FileVersionInfo versionInfo = ADP.GetVersionInfo(filename); // MDAC 60411 2249if (!ADP.IsCatchableExceptionType(e)) { 2260throw ADP.DataAdapter(Res.GetString(Res.Odbc_MDACWrongVersion, version)); 2263throw ADP.DataAdapter(Res.GetString(Res.OleDb_MDACWrongVersion, version)); 2410columnNameArray[i] = ADP.StrEmpty; // MDAC 66681 2446if (4 == ADP.PtrSize) { 2449Debug.Assert(8 == ADP.PtrSize, "8 != IntPtr.Size"); // MDAC 73747 2454if (4 == ADP.PtrSize) { 2471return CultureInfo.CurrentCulture.CompareInfo.Compare(strA, strB, ADP.compareOptions);
fx\src\data\System\Data\Common\DataAdapter.cs (32)
145throw ADP.InvalidLoadOption(value); 183throw ADP.InvalidMissingMappingAction(value); 208throw ADP.InvalidMissingSchemaAction(value); 324throw ADP.NotSupported(); 332throw ADP.ArgumentNull("dataSet"); 335throw ADP.InvalidSchemaType(schemaType); 337if (ADP.IsEmpty(srcTable)) { 338throw ADP.FillSchemaRequiresSourceTableName("srcTable"); 341throw ADP.FillRequires("dataReader"); 357throw ADP.ArgumentNull("dataTable"); 360throw ADP.InvalidSchemaType(schemaType); 363throw ADP.FillRequires("dataReader"); 415throw ADP.NotSupported(); 423throw ADP.FillRequires("dataSet"); 425if (ADP.IsEmpty(srcTable)) { 426throw ADP.FillRequiresSourceTableName("srcTable"); 429throw ADP.FillRequires("dataReader"); 432throw ADP.InvalidStartRecord("startRecord", startRecord); 435throw ADP.InvalidMaxRecords("maxRecords", maxRecords); 458ADP.CheckArgumentLength(dataTables, "tables"); 460throw ADP.FillRequires("dataTable"); 463throw ADP.FillRequires("dataReader"); 466throw ADP.NotSupported(); // FillChildren is not supported with FillPage 602if (!ADP.IsCatchableExceptionType(e)) { 605ADP.TraceExceptionForCapture(e); 635if (!ADP.IsCatchableExceptionType(e)) { 638ADP.TraceExceptionForCapture(e); 671if (!ADP.IsCatchableExceptionType(e)) { 674ADP.TraceExceptionForCapture(e); 694if (!ADP.IsCatchableExceptionType(e)) { 697ADP.TraceExceptionForCapture(e); 744throw ADP.NotSupported();
fx\src\data\System\Data\Common\DataColumnMapping.cs (12)
43return ((null != dataSetColumnName) ? dataSetColumnName : ADP.StrEmpty); 67return ((null != sourceColumnName) ? sourceColumnName : ADP.StrEmpty); 70if ((null != Parent) && (0 != ADP.SrcCompare(_sourceColumnName, value))) { 92throw ADP.ArgumentNull("dataTable"); 94if (ADP.IsEmpty(dataSetColumn)) { 110if (!ADP.IsEmpty(dataColumn.Expression)) { 116throw ADP.ColumnSchemaExpression(sourceColumn, dataSetColumn); 131throw ADP.ColumnSchemaMismatch(sourceColumn, dataType, dataColumn); 139if (ADP.IsEmpty(dataSetColumn)) { 167throw ADP.ColumnSchemaMissing(dataSetColumn, dataTable.TableName, sourceColumn); 169throw ADP.InvalidMissingSchemaAction(schemaAction); 191throw ADP.ArgumentNull("destinationType");
fx\src\data\System\Data\Common\DataColumnMappingCollection.cs (27)
143throw ADP.ArgumentNull("values"); 209throw ADP.ColumnsDataSetColumn(value); 231if (!ADP.IsEmpty(sourceColumn)) { 234if (0 == ADP.SrcCompare(sourceColumn, items[i].SourceColumn)) { 243if (!ADP.IsEmpty(dataSetColumn)) { 246if ( 0 == ADP.DstCompare(dataSetColumn, items[i].DataSetColumn)) { 261throw ADP.ColumnsAddNullAttempt("value"); 270throw ADP.ColumnsIndexInt32(index, this); 277throw ADP.ColumnsIndexSource(sourceColumn); 305throw ADP.ColumnsAddNullAttempt ("value"); 313throw ADP.CollectionRemoveInvalidObject(ItemType, this); 327throw ADP.ColumnsAddNullAttempt("value"); 330throw ADP.NotADataColumnMapping(value); 336throw ADP.ColumnsAddNullAttempt("value"); 340throw ADP.ColumnsIsNotParent(this); 343throw ADP.ColumnsIsParent(this); 348if (ADP.IsEmpty(name)) { 351name = ADP.SourceColumn + index.ToString(System.Globalization.CultureInfo.InvariantCulture); 364throw ADP.ColumnsUniqueSourceColumn(value); 381if (ADP.IsEmpty(sourceColumn)) { 382throw ADP.InvalidSourceColumn("sourceColumn"); 407throw ADP.MissingColumnMapping(sourceColumn); 409throw ADP.InvalidMissingMappingAction(mappingAction); 425if (ADP.IsEmpty(sourceColumn)) { 426throw ADP.InvalidSourceColumn("sourceColumn"); 451throw ADP.MissingColumnMapping(sourceColumn); 453throw ADP.InvalidMissingMappingAction(mappingAction);
fx\src\data\System\Data\Common\DataRecordInternal.cs (13)
57throw ADP.ArgumentNull("values"); 120throw ADP.InvalidSourceBufferIndex(cbytes, dataIndex, "dataIndex"); 143if (ADP.IsCatchableExceptionType(e)) { 147throw ADP.InvalidDataLength(length); 151throw ADP.InvalidDestinationBufferIndex(length, bufferIndex, "bufferIndex"); 155throw ADP.InvalidSourceBufferIndex(length, dataIndex, "dataIndex"); 159throw ADP.InvalidBufferSizeOrIndex(cbytes, bufferIndex); 192throw ADP.InvalidSourceBufferIndex(cchars, dataIndex, "dataIndex"); 215if (ADP.IsCatchableExceptionType(e)) { 219throw ADP.InvalidDataLength(length); 223throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 227throw ADP.InvalidSourceBufferIndex(cchars, dataIndex, "dataIndex"); 231throw ADP.InvalidBufferSizeOrIndex(cchars, bufferIndex);
fx\src\data\System\Data\Common\DataTableMapping.cs (8)
73return ((null != dataSetTableName) ? dataSetTableName : ADP.StrEmpty); 97return ((null != sourceTableName) ? sourceTableName : ADP.StrEmpty); 100if ((null != Parent) && (0 != ADP.SrcCompare(_sourceTableName, value))) { 134throw ADP.ArgumentNull("dataSet"); 138if (ADP.IsEmpty(dataSetTable)) { 180throw ADP.MissingTableSchema(dataSetTable, SourceTable); 182throw ADP.InvalidMissingSchemaAction(schemaAction); 204throw ADP.ArgumentNull("destinationType");
fx\src\data\System\Data\Common\DataTableMappingCollection.cs (23)
137throw ADP.ArgumentNull("values"); 212throw ADP.TablesDataSetTable(dataSetTable); 234if (!ADP.IsEmpty(sourceTable)) { 237if ((null != value) && (0 == ADP.SrcCompare(sourceTable, value))) { 246if (!ADP.IsEmpty(dataSetTable)) { 249if ((null != value) && (0 == ADP.DstCompare(dataSetTable, value))) { 264throw ADP.TablesAddNullAttempt("value"); 273throw ADP.TablesIndexInt32(index, this); 280throw ADP.TablesSourceIndex(sourceTable); 308throw ADP.TablesAddNullAttempt ("value"); 316throw ADP.CollectionRemoveInvalidObject (ItemType, this); 329throw ADP.TablesAddNullAttempt("value"); 332throw ADP.NotADataTableMapping(value); 338throw ADP.TablesAddNullAttempt("value"); 342throw ADP.TablesIsNotParent(this); 345throw ADP.TablesIsParent(this); 349if (ADP.IsEmpty(name)) { 352name = ADP.SourceTable + index.ToString(System.Globalization.CultureInfo.InvariantCulture); 365throw ADP.TablesUniqueSourceTable(value); 382if (ADP.IsEmpty(sourceTable)) { 383throw ADP.InvalidSourceTable("sourceTable"); 408throw ADP.MissingTableMapping(sourceTable); 411throw ADP.InvalidMissingMappingAction(mappingAction);
fx\src\data\System\Data\Common\DBCommand.cs (6)
210return ADP.CreatedTaskWithCancellation<int>(); 223return ADP.CreatedTaskWithException<int>(e); 246return ADP.CreatedTaskWithCancellation<DbDataReader>(); 259return ADP.CreatedTaskWithException<DbDataReader>(e); 270return ADP.CreatedTaskWithCancellation<object>(); 283return ADP.CreatedTaskWithException<object>(e);
fx\src\data\System\Data\Common\DBCommandBuilder.cs (56)
171if (ADP.CompareInsensitiveInvariant(name, _baseParameterNames[j])) { 225if (ADP.CompareInsensitiveInvariant(_baseParameterNames[i], name)) { 317throw ADP.InvalidConflictOptions(value); 333throw ADP.NoQuoteChange(); 341throw ADP.InvalidCatalogLocation(value); 358throw ADP.NoQuoteChange(); 417return ((null != quotePrefix) ? quotePrefix : ADP.StrEmpty); 421throw ADP.NoQuoteChange(); 435return ((null != quoteSuffix) ? quoteSuffix : ADP.StrEmpty); 439throw ADP.NoQuoteChange(); 458throw ADP.NoQuoteChange(); 516throw ADP.MissingSourceCommandConnection(); 555throw ADP.DynamicSQLNoTableInfo(); 577ADP.BuildSchemaTableInfoTableNames(srcColumnNames); 589throw ADP.DynamicSQLNoTableInfo(); 623else if ( (0 != ADP.SrcCompare(baseTableName, tableName)) 624|| (0 != ADP.SrcCompare(baseSchemaName, schemaName)) 625|| (0 != ADP.SrcCompare(baseCatalogName, catalogName)) 626|| (0 != ADP.SrcCompare(baseServerName, serverName))) { 627throw ADP.DynamicSQLJoinUnsupported(); 643throw ADP.DynamicSQLNoTableInfo(); 653if (!ADP.IsEmpty(quotePrefix) && (-1 != baseTableName.IndexOf(quotePrefix, StringComparison.Ordinal))) { 654throw ADP.DynamicSQLNestedQuote(baseTableName, quotePrefix); 656if (!ADP.IsEmpty(quoteSuffix) && (-1 != baseTableName.IndexOf(quoteSuffix, StringComparison.Ordinal))) { 657throw ADP.DynamicSQLNestedQuote(baseTableName, quoteSuffix); 664builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseServerName)); 668builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseCatalogName)); 674builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseSchemaName)); 678builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseTableName)); 684builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseServerName)); 688builder.Append(ADP.BuildQuotedString(quotePrefix, quoteSuffix, baseCatalogName)); 708Debug.Assert (!ADP.IsEmpty(_quotedBaseTableName), "no table name"); 728Debug.Assert (!ADP.IsEmpty(_quotedBaseTableName), "no table name"); 814Debug.Assert (!ADP.IsEmpty(_quotedBaseTableName), "no table name"); 995throw ADP.DynamicSQLNoKeyInfoRowVersionUpdate(); 997throw ADP.DynamicSQLNoKeyInfoUpdate(); 1001throw ADP.DynamicSQLNoKeyInfoRowVersionDelete(); 1003throw ADP.DynamicSQLNoKeyInfoDelete(); 1022Debug.Assert(!ADP.IsEmpty(sourceColumn), "empty source column"); 1039p.Value = ADP.IsNull(value) ? DbDataAdapter.ParameterValueNullValue : DbDataAdapter.ParameterValueNonNullValue; 1163throw ADP.MissingSourceCommand(); 1233if (!ADP.IsEmpty(columnName)) { 1270throw ADP.DynamicSQLNoKeyInfoRowVersionUpdate(); 1272throw ADP.DynamicSQLNoKeyInfoUpdate(); 1292throw ADP.InvalidConflictOptions(value); 1316return ADP.BuildQuotedString(QuotePrefix, QuoteSuffix, column); 1321throw ADP.NotSupported(); 1365throw ADP.ArgumentNull("rowUpdatingEvent"); 1387throw ADP.InvalidStatementType(stmtType); 1411if (!ADP.IsCatchableExceptionType(e)) { 1415ADP.TraceExceptionForCapture(e); 1445throw ADP.InvalidStatementType(rowUpdatingEvent.StatementType); 1457throw ADP.NotSupported(); 1484if (!ADP.IsEmpty(name)) { 1485bool useQuotes = !ADP.IsEmpty(quotePrefix) && !ADP.IsEmpty(quoteSuffix);
fx\src\data\System\Data\Common\DBConnection.cs (5)
44return ADP.DefaultConnectionTimeout; 143throw ADP.NotSupported(); 149throw ADP.NotSupported(); 153throw ADP.NotSupported(); 157throw ADP.NotSupported();
fx\src\data\System\Data\Common\DbConnectionOptions.cs (38)
182return ADP.IsEmpty((string)_parsetable[KEY.Password]); 185return ADP.IsEmpty((string)_parsetable[SYNONYM.Pwd]); // MDAC 83097 187return ((_parsetable.ContainsKey(KEY.User_ID) && !ADP.IsEmpty((string)_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !ADP.IsEmpty((string)_parsetable[SYNONYM.UID]))); 220ADP.CheckArgumentNull(builder, "builder"); 221ADP.CheckArgumentLength(keyName, "keyName"); 224throw ADP.InvalidKeyname(keyName); 227throw ADP.InvalidValue(keyName); 300throw ADP.InvalidConnectionOptionValue(keyName); 326throw ADP.InvalidConnectionOptionValue(KEY.Integrated_Security); 344throw ADP.InvalidConnectionOptionValue(keyname, e); 347throw ADP.InvalidConnectionOptionValue(keyname, e); 395throw ADP.InvalidDataDirectory(); 397else if (ADP.IsEmpty(rootFolderPath)) { 427if (!ADP.GetFullPath(fullPath).StartsWith(rootFolderPath, StringComparison.Ordinal)) { 428throw ADP.InvalidConnectionOptionValue(keyword); 620if (Char.IsControl(currentChar)) { throw ADP.ConnectionStringSyntax(startposition); } 634if (Char.IsControl(currentChar)) { throw ADP.ConnectionStringSyntax(startposition); } 640if (ADP.IsEmpty(keyname)) { throw ADP.ConnectionStringSyntax(startposition); } 656if (Char.IsControl(currentChar)) { throw ADP.ConnectionStringSyntax(startposition); } 667if ('\0' == currentChar) { throw ADP.ConnectionStringSyntax(startposition); } 678if ('\0' == currentChar) { throw ADP.ConnectionStringSyntax(startposition); } 689if ('\0' == currentChar) { throw ADP.ConnectionStringSyntax(startposition); } 702throw ADP.ConnectionStringSyntax(startposition); // unbalanced single quote 707throw ADP.ConnectionStringSyntax(currentPosition); 710throw ADP.InternalError(ADP.InternalErrorCode.InvalidParserState1); 721throw ADP.ConnectionStringSyntax(startposition); 726if (ADP.IsEmpty(keyname)) { throw ADP.ConnectionStringSyntax(startposition); } 735throw ADP.ConnectionStringSyntax(startposition); // unquoted value must not end in quote, except for odbc 754throw ADP.InternalError(ADP.InternalErrorCode.InvalidParserState2); 891if (ADP.IsEmpty(keyname)) { 903throw ADP.KeywordNotSupported(keyname); 966throw ADP.InvalidKeyname(keyword); 969throw ADP.InvalidValue(keyword);
fx\src\data\System\Data\Common\DBConnectionString.cs (17)
82throw ADP.InvalidKeyRestrictionBehavior(behavior); 117if (!ADP.IsEmpty(restrictions)) { 161if (!ADP.IsEmpty(restrictionValues[i])) { 198if (!ADP.IsEmptyArray(_restrictionValues)) { 199if (!ADP.IsEmptyArray(entry._restrictionValues)) { 212else if (!ADP.IsEmptyArray(_restrictionValues)) { // this AllowOnly and entry PreventUsage 213if (!ADP.IsEmptyArray(entry._restrictionValues)) { 227if (ADP.IsEmptyArray(_restrictionValues)) { 231else if (ADP.IsEmptyArray(entry._restrictionValues)) { 240else if (!ADP.IsEmptyArray(_restrictionValues) && !ADP.IsEmptyArray(entry._restrictionValues)) { // both AllowOnly with restrictions 338throw ADP.InvalidKeyRestrictionBehavior(_behavior); 417if (!ADP.IsEmpty(keyname)) { 424if (ADP.IsEmpty(realkeyname)) { 425throw ADP.KeywordNotSupported(keyname); 469Debug.Assert(!ADP.IsEmpty(restrictionValues[i-1]), "empty restriction"); 470Debug.Assert(!ADP.IsEmpty(restrictionValues[i]), "empty restriction");
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (11)
75ADP.CheckArgumentNull(keyword, "keyword"); 80throw ADP.KeywordNotSupported(keyword); 83ADP.CheckArgumentNull(keyword, "keyword"); 251ADP.CheckArgumentNull(keyword, "keyword"); 261ADP.CheckArgumentNull(connectionStringBuilder, "connectionStringBuilder"); 305ADP.CheckArgumentNull(keyword, "keyword"); 316ADP.CheckArgumentNull(keyword, "keyword"); 325ADP.CheckArgumentNull(keyword, "keyword"); 366if (ADP.ConnectionString != reflected.Name) { 377propertyDescriptors[ADP.ConnectionString] = reflected; 380propertyDescriptors.Remove(ADP.ConnectionString);
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (20)
268throw ADP.ConvertFailed(value.GetType(), typeof(Boolean), e); 298throw ADP.ConvertFailed(value.GetType(), typeof(Boolean), e); 310throw ADP.ConvertFailed(value.GetType(), typeof(Int32), e); 322throw ADP.ConvertFailed(value.GetType(), typeof(String), e); 416throw ADP.InvalidConnectionOptionValue(keyword); 433throw ADP.ConvertFailed(value.GetType(), typeof(PoolBlockingPeriod), null); 446throw ADP.ConvertFailed(value.GetType(), typeof(PoolBlockingPeriod), e); 457throw ADP.InvalidEnumerationValue(typeof(ApplicationIntent), (int)eValue); 541throw ADP.InvalidConnectionOptionValue(keyword); 558throw ADP.ConvertFailed(value.GetType(), typeof(ApplicationIntent), null); 571throw ADP.ConvertFailed(value.GetType(), typeof(ApplicationIntent), e); 582throw ADP.InvalidEnumerationValue(typeof(ApplicationIntent), (int)eValue); 735throw ADP.InvalidConnectionOptionValue(keyword); 752throw ADP.ConvertFailed(value.GetType(), typeof(SqlAuthenticationMethod), null); 765throw ADP.ConvertFailed(value.GetType(), typeof(SqlAuthenticationMethod), e); 776throw ADP.InvalidEnumerationValue(typeof(SqlAuthenticationMethod), (int)eValue); 806throw ADP.InvalidConnectionOptionValue(keyword); 820throw ADP.ConvertFailed(value.GetType(), typeof(SqlConnectionColumnEncryptionSetting), null); 830throw ADP.ConvertFailed(value.GetType(), typeof(SqlConnectionColumnEncryptionSetting), e); 839throw ADP.InvalidEnumerationValue(typeof(SqlConnectionColumnEncryptionSetting), (int)eValue);
fx\src\data\System\Data\Common\DbDataAdapter.cs (75)
146throw ADP.NotSupported(); 198throw ADP.NotSupported(); 205throw ADP.NotSupported(); 253throw ADP.NotSupported(); 274if (DesignMode && ((null == command) || (null == command.Connection) || ADP.IsEmpty(command.CommandText))) { 303throw ADP.ArgumentNull("dataSet"); 306throw ADP.InvalidSchemaType(schemaType); 308if (ADP.IsEmpty(srcTable)) { 309throw ADP.FillSchemaRequiresSourceTableName("srcTable"); 312throw ADP.MissingSelectCommand(ADP.FillSchema); 325throw ADP.ArgumentNull("dataTable"); 328throw ADP.InvalidSchemaType(schemaType); 331throw ADP.MissingSelectCommand(ADP.FillSchema); 348IDbConnection activeConnection = DbDataAdapter.GetConnection3(this, command, ADP.FillSchema); 422throw ADP.FillRequires("dataSet"); 425throw ADP.InvalidStartRecord("startRecord", startRecord); 428throw ADP.InvalidMaxRecords("maxRecords", maxRecords); 430if (ADP.IsEmpty(srcTable)) { 431throw ADP.FillRequiresSourceTableName("srcTable"); 434throw ADP.MissingSelectCommand(ADP.Fill); 490throw ADP.FillRequires("dataTable"); 493throw ADP.InvalidStartRecord("startRecord", startRecord); 496throw ADP.InvalidMaxRecords("maxRecords", maxRecords); 499throw ADP.OnlyOneTableForStartRecordOrMaxRecords(); 502throw ADP.MissingSelectCommand(ADP.Fill); 518IDbConnection activeConnection = DbDataAdapter.GetConnection3(this, command, ADP.Fill); 566throw ADP.NotSupported(); 608throw ADP.MissingTableMappingDestination(dataTable.TableName); 619throw ADP.NotSupported(); 636if (!ADP.IsEmpty(columnName)) { 650parameter.Value = ADP.IsNull(parameter.Value) ? ParameterValueNullValue : ParameterValueNonNullValue; 664if (!ADP.IsEmpty(columnName)) { 701throw ADP.NotSupported(); 717throw ADP.ArgumentNull("dataRows"); 724throw ADP.UpdateMismatchRowTable(i); 746throw ADP.UpdateRequiresDataTable("dataTable"); 756throw ADP.MissingTableMappingDestination(dataTable.TableName); 771throw ADP.UpdateRequiresNonNullDataSet("dataSet"); 773if (ADP.IsEmpty(srcTable)) { 774throw ADP.UpdateRequiresSourceTableName("srcTable"); 795throw ADP.UpdateRequiresSourceTable(srcTable); // MDAC 72681 872throw ADP.InvalidDataRowState(dataRow.RowState); // out of Update without completing batch 888if (!ADP.IsCatchableExceptionType(e)) { 892ADP.TraceExceptionForCapture(e); 925throw ADP.InvalidUpdateStatus(rowUpdatingStatus); // out of Update 969errors = ADP.ResultsNotAllowedDuringBatch(); 974errors = ADP.UpdateRequiresCommand(statementType, isCommandFromRowUpdating); 979if (!ADP.IsCatchableExceptionType(e)) { 983ADP.TraceExceptionForCapture(e); 1022rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(StatementType.Batch, false, state); 1036rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(statementType, isCommandFromRowUpdating, state); 1042rowUpdatedEvent.Errors = ADP.UpdateRequiresCommand(statementType, isCommandFromRowUpdating); 1048if (!ADP.IsCatchableExceptionType(e)) { 1052ADP.TraceExceptionForCapture(e); 1111rowUpdatedEvent.Errors = ADP.UpdateOpenConnectionRequired(StatementType.Batch, false, state); 1117if (!ADP.IsCatchableExceptionType(e)) { 1121ADP.TraceExceptionForCapture(e); 1164ADP.TraceExceptionForCapture(e); 1198batchCommands[bc].Errors = ADP.UpdateConcurrencyViolation(batchCommands[bc].StatementType, 0, 1, new DataRow[] { rowUpdatedEvent.Rows[bc] }); 1230rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(StatementType.Batch, commandCount - rowsInError.Length, commandCount, rowsInError); // MDAC 55735 1259DataRow[] dataRows = ADP.SelectAdapterRows(dataTable, false); 1341rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(cmdIndex, rowUpdatedEvent.RecordsAffected, 1, new DataRow[] { rowUpdatedEvent.Row }); // MDAC 55735 1365throw ADP.InvalidUpdateStatus(rowUpdatedEvent.Status); 1404errors = ADP.RowUpdatedErrors(); 1463errors = ADP.RowUpdatingErrors(); 1490throw ADP.UpdateConnectionRequired(StatementType.Batch, false); 1497Debug.Assert(!ADP.IsEmpty(method), "missing method name"); 1500throw ADP.ConnectionRequired_Res(method); 1509throw ADP.UpdateConnectionRequired(statementType, isCommandFromRowUpdating); 1520throw ADP.UnwantedStatementType(statementType); 1522throw ADP.InvalidStatementType(statementType);
fx\src\data\System\Data\Common\DBDataPermission.cs (11)
41throw ADP.InvalidPermissionState(state); 52throw ADP.ArgumentNull("permissionAttribute"); 59throw ADP.ArgumentNull("permissionAttribute"); 146throw ADP.PermissionTypeMismatch(); 189throw ADP.PermissionTypeMismatch(); 224throw ADP.PermissionTypeMismatch(); 273throw ADP.ArgumentNull("securityElement"); 277throw ADP.NotAPermissionElement(); 281throw ADP.InvalidXMLBadVersion(); 341if (!ADP.IsEmpty(tmp)) { 346if (null == tmp) { tmp = ADP.StrEmpty; }
fx\src\data\System\Data\Common\DBDataPermissionAttribute.cs (2)
68throw ADP.InvalidKeyRestrictionBehavior(value); 76return (null != value) ? value : ADP.StrEmpty;
fx\src\data\System\Data\Common\DbDataReader.cs (15)
119throw ADP.NotSupported(); 204return ADP.CreatedTaskWithCancellation<T>(); 211return ADP.CreatedTaskWithException<T>(e); 226return ADP.CreatedTaskWithCancellation<bool>(); 230return IsDBNull(ordinal) ? ADP.TrueTask : ADP.FalseTask; 233return ADP.CreatedTaskWithException<bool>(e); 248return ADP.CreatedTaskWithCancellation<bool>(); 252return Read() ? ADP.TrueTask : ADP.FalseTask; 255return ADP.CreatedTaskWithException<bool>(e); 266return ADP.CreatedTaskWithCancellation<bool>(); 270return NextResult() ? ADP.TrueTask : ADP.FalseTask; 273return ADP.CreatedTaskWithException<bool>(e);
fx\src\data\System\Data\Common\dbdatarecord.cs (1)
48throw ADP.NotSupported();
fx\src\data\System\Data\Common\dbenumerator.cs (6)
30throw ADP.ArgumentNull("reader"); 37throw ADP.ArgumentNull("reader"); 81throw ADP.NotSupported(); 90ADP.BuildSchemaTableInfoTableNames(fieldnames); // MDAC 71401 145throw ADP.NotSupported(); 149throw ADP.NotSupported();
fx\src\data\System\Data\Common\DbProviderConfigurationHandler.cs (5)
100throw ADP.ConfigSectionsUnique(DbProviderConfigurationHandler.settings); 106throw ADP.ConfigUnrecognizedElement(child); 125throw ADP.ConfigRequiredAttributeMissing(name, node); 129throw ADP.ConfigRequiredAttributeEmpty(name, node); 157throw ADP.ConfigUnrecognizedElement(child);
fx\src\data\System\Data\Common\DbProviderFactories.cs (8)
33ADP.CheckArgumentLength(providerInvariantName, "providerInvariantName"); 51throw ADP.ConfigProviderNotFound(); 55ADP.CheckArgumentNull(providerRow, "providerRow"); 62if (!ADP.IsEmpty(assemblyQualifiedName)) { 87throw ADP.ConfigProviderInvalid(); 89throw ADP.ConfigProviderNotInstalled(); 93throw ADP.ConfigProviderMissing(); 97ADP.CheckArgumentNull(connection, "connection");
fx\src\data\System\Data\Common\DbProviderFactoriesConfigurationHandler.cs (3)
163throw ADP.ConfigSectionsUnique(DbProviderFactoriesConfigurationHandler.providerGroup); 169throw ADP.ConfigUnrecognizedElement(child); 222throw ADP.ConfigUnrecognizedElement(child);
fx\src\data\System\Data\Common\FieldNameLookup.cs (4)
36throw ADP.ArgumentNull("fieldNames"); 69throw ADP.ArgumentNull("fieldName"); 73throw ADP.IndexOutOfRange(fieldName); 102index = LinearIndexOf(fieldName, ADP.compareOptions);
fx\src\data\System\Data\Common\HandlerBase.cs (5)
22throw ADP.ConfigBaseNoChildNodes(node.FirstChild); 27throw ADP.ConfigBaseElementsOnly(node); 32throw ADP.ConfigUnrecognizedAttributes(node); 49throw ADP.ConfigRequiredAttributeMissing(name, node); 55throw ADP.ConfigRequiredAttributeEmpty(name, node);
fx\src\data\System\Data\Common\MultipartIdentifier.cs (10)
53throw ADP.InvalidMultipartNameToManyParts (property, name, limit); 65throw ADP.InvalidMultipartNameToManyParts (property, name, limit); 69throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 104throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 122throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 126throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 189throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 205throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 227throw ADP.InvalidMultipartNameIncorrectUsageOfQuotes (property, name); 232throw ADP.InvalidMultipartName (property, name); // Name is entirely made up of whitespace
fx\src\data\System\Data\Common\NameValuePair.cs (3)
25System.Diagnostics.Debug.Assert(!ADP.IsEmpty(name), "empty keyname"); 52throw ADP.InternalError(ADP.InternalErrorCode.NameValuePairNext);
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
468throw ADP.InvalidOperation(Res.GetString(Res.Xml_DynamicWithoutXmlSerializable));
fx\src\data\System\Data\Common\RowUpdatedEventArgs.cs (3)
41throw ADP.InvalidStatementType(statementType); 108throw ADP.InvalidUpdateStatus(value); 143throw ADP.ArgumentNull("array");
fx\src\data\System\Data\Common\RowUpdatingEventArgs.cs (5)
28ADP.CheckArgumentNull(dataRow, "dataRow"); 29ADP.CheckArgumentNull(tableMapping, "tableMapping"); 37throw ADP.NotSupportedStatementType(statementType, "RowUpdatingEventArgs"); 39throw ADP.InvalidStatementType(statementType); 100throw ADP.InvalidUpdateStatus(value);
fx\src\data\System\Data\Common\SafeNativeMethods.cs (1)
148SafeNativeMethods.SetErrorInfo(0, ADP.PtrZero);
fx\src\data\System\Data\Common\SQLTypes\SqlXmlStorage.cs (1)
109return ADP.StrEmpty;
fx\src\data\System\Data\Constraint.cs (4)
48if (Common.ADP.IsEmpty(value) && (Table != null) && InCollection) 68if (Common.ADP.IsEmpty(_schemaName)) 75if (!Common.ADP.IsEmpty(value)) 144if (!Common.ADP.IsCatchableExceptionType (e)) {
fx\src\data\System\Data\ConstraintCollection.cs (1)
410if (Common.ADP.IsCatchableOrSecurityExceptionType(e)) {
fx\src\data\System\Data\DataColumn.cs (2)
801if (!ADP.IsCatchableExceptionType(e1)) { 822if (!ADP.IsCatchableExceptionType(e2)) {
fx\src\data\System\Data\DataColumnCollection.cs (2)
348if (ADP.IsCatchableOrSecurityExceptionType(e)) { 559if (ADP.IsCatchableOrSecurityExceptionType(e)) {
fx\src\data\System\Data\DataException.cs (1)
762return System.Data.Common.ADP.NotSupported(Res.GetString(Res.DataColumn_NullableTypesNotSupported));
fx\src\data\System\Data\DataRelation.cs (2)
525if (ADP.IsEmpty(ChildTable.Namespace) && ((ChildTable.NestedParentsCount > 1) || 661if (ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\DataRelationCollection.cs (1)
731if (!Common.ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\DataRow.cs (3)
107if (!Common.ADP.IsEmpty(value)) { 317if (Common.ADP.IsCatchableOrSecurityExceptionType(e1)) { 460if (Common.ADP.IsCatchableOrSecurityExceptionType(e1)) {
fx\src\data\System\Data\DataSet.cs (13)
695if (Common.ADP.IsEmpty(value)) 852if (!Common.ADP.IsCatchableExceptionType(e)) { 855Common.ADP.TraceExceptionWithoutRethrow(e); 1677if (!Common.ADP.IsEmpty(attribValue)) { 1762ADP.CheckArgumentNull(multipleTargetConverter, "multipleTargetConverter"); 1782ADP.CheckArgumentNull(multipleTargetConverter, "multipleTargetConverter"); 1798ADP.CheckArgumentNull(multipleTargetConverter, "multipleTargetConverter"); 1814ADP.CheckArgumentNull(multipleTargetConverter, "multipleTargetConverter"); 2766throw Common.ADP.InvalidMissingSchemaAction(missingSchemaAction); 2815throw Common.ADP.InvalidMissingSchemaAction(missingSchemaAction); 2860throw Common.ADP.InvalidMissingSchemaAction(missingSchemaAction); 3397Common.ADP.CheckArgumentNull(dt, "tables"); 3424Common.ADP.CheckArgumentNull(tables, "tables");
fx\src\data\System\Data\DataTable.cs (14)
905if (!ADP.IsCatchableExceptionType (e)) { 1350if (!Common.ADP.IsCatchableExceptionType(e)) { 1353Common.ADP.TraceExceptionWithoutRethrow(e); 3102if (Common.ADP.IsCatchableOrSecurityExceptionType (e)) { 3721if (!Common.ADP.IsCatchableExceptionType(f)) { 4021if (!Common.ADP.IsCatchableExceptionType(e)) { 4447throw Common.ADP.InvalidMissingSchemaAction(missingSchemaAction); 5732if (Common.ADP.IsEmpty(this.tableName) && Common.ADP.IsEmpty(CurrentTableFullName)) 5737if (!Common.ADP.IsEmpty(this.tableName)) { 5738if (!Common.ADP.IsEmpty(this.Namespace)) { 5761if (!Common.ADP.IsEmpty(this.tableName)) { 5791if (Common.ADP.IsEmpty(this.TableName)) { 5793if (!Common.ADP.IsEmpty(currentTable.Namespace)) {
fx\src\data\System\Data\DataTableReader.cs (7)
340throw ADP.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 343throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 350throw ADP.InvalidDataLength(length); 390throw ADP.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 393throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 400throw ADP.InvalidDataLength(length); 733throw ADP.DataReaderClosed(caller);
fx\src\data\System\Data\DataView.cs (2)
1443if (!Common.ADP.IsCatchableExceptionType(f)) { 1521if (!Common.ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\DataViewManager.cs (1)
355if (!Common.ADP.IsCatchableExceptionType(f)) {
fx\src\data\System\Data\Filter\DataExpression.cs (2)
124if (!ADP.IsCatchableExceptionType(e)) { 230if (!ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\Filter\ExpressionParser.cs (2)
246if (!Common.ADP.IsCatchableExceptionType(e)) { 577if (!Common.ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\Filter\NameNode.cs (1)
50if (!Common.ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\ForeignKeyConstraint.cs (3)
601throw Common.ADP.InvalidAcceptRejectRule(value); 751throw Common.ADP.InvalidRule(value); 860throw Common.ADP.InvalidRule(value);
fx\src\data\System\Data\Merger.cs (1)
511if (!Common.ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\Odbc\Odbc32.cs (24)
24return ADP.InvalidOperation(Res.GetString(Res.Odbc_ConnectionClosed)); 28return ADP.InvalidOperation(Res.GetString(Res.Odbc_OpenConnectionNoOwner)); 32return ADP.Argument(Res.GetString(Res.Odbc_UnknownSQLType, sqltype.ToString())); 35return ADP.Argument(Res.GetString(Res.OdbcConnection_ConnectionStringTooLong, ODBC32.MAX_CONNECTION_STRING_LENGTH)); 38return ADP.Argument(Res.GetString(Res.ODBC_GetSchemaRestrictionRequired)); 41return ADP.ArgumentOutOfRange(Res.GetString(Res.ODBC_NotSupportedEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name); 81return ADP.DataAdapter(Res.GetString(Res.Odbc_NoMappingForSqlTransactionLevel, value.ToString(CultureInfo.InvariantCulture))); 85return ADP.Argument(Res.GetString(Res.Odbc_NegativeArgument)); 88return ADP.InvalidOperation(Res.GetString(Res.Odbc_CantSetPropertyOnOpenConnection)); 91return ADP.DataAdapter(Res.GetString(Res.Odbc_CantEnableConnectionpooling, ODBC32.RetcodeToString(retcode))); 94return ADP.DataAdapter(Res.GetString(Res.Odbc_CantAllocateEnvironmentHandle, ODBC32.RetcodeToString(retcode))); 97return ADP.DataAdapter(Res.GetString(Res.Odbc_FailedToGetDescriptorHandle, ODBC32.RetcodeToString(retcode))); 100return ADP.InvalidOperation(Res.GetString(Res.Odbc_NotInTransaction)); 103return ADP.InvalidEnumerationValue(typeof(OdbcType), (int) odbctype); 112return checked((short)ADP.StringLength(inputString)); 270static internal readonly IntPtr SQL_AUTOCOMMIT_OFF = ADP.PtrZero; 575static internal readonly IntPtr SQL_HANDLE_NULL = ADP.PtrZero; 783static private readonly TypeMap _Decimal = new TypeMap(OdbcType.Decimal, DbType.Decimal, typeof(Decimal), ODBC32.SQL_TYPE.DECIMAL, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false); 790static private readonly TypeMap _Numeric = new TypeMap(OdbcType.Numeric, DbType.Decimal, typeof(Decimal), ODBC32.SQL_TYPE.NUMERIC, ODBC32.SQL_C.NUMERIC, ODBC32.SQL_C.NUMERIC, 19, ADP.DecimalMaxPrecision28, false); 889default: throw ADP.DbTypeNotSupported(dbType, typeof(OdbcType)); 895case TypeCode.Empty: throw ADP.InvalidDataType(TypeCode.Empty); 909throw ADP.UnknownDataType(dataType); 911case TypeCode.DBNull: throw ADP.InvalidDataType(TypeCode.DBNull); 932default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType));
fx\src\data\System\Data\Odbc\OdbcCommand.cs (22)
41private int _commandTimeout = ADP.DefaultCommandTimeout; 161return ((null != value) ? value : ADP.StrEmpty); 169if (0 != ADP.SrcCompare(_commandText, value)) { 187throw ADP.InvalidCommandTimeout(value); 197if (ADP.DefaultCommandTimeout != _commandTimeout) { 199_commandTimeout = ADP.DefaultCommandTimeout; 204return (ADP.DefaultCommandTimeout != _commandTimeout); 228throw ADP.InvalidCommandType(value); 357throw ADP.InvalidUpdateRowSource(value); 502using (OdbcDataReader reader = ExecuteReaderObject(0, ADP.ExecuteNonQuery, false)) { 515return ExecuteReaderObject(behavior, ADP.ExecuteReader, true); 528throw (ADP.CommandTextRequired(method)); 560throw ADP.OpenReaderExists(); // MDAC 66411 726throw ADP.InvalidOperation(method.ToString()); 772using(IDataReader reader = ExecuteReaderObject(0, ADP.ExecuteScalar, false)) { 803ValidateOpenConnection(ADP.Prepare); 806throw ADP.OpenReaderExists(); 855throw ADP.ConnectionRequired(methodName); 862throw ADP.OpenConnectionRequired(methodName, state); 868throw ADP.ConnectionRequired(method); 995if (ADP.IsCatchableExceptionType(e)) { 1013if (ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (26)
108throw ADP.ArgumentNull("command"); 112throw ADP.DeriveParametersNotSupported(command); 117throw ADP.DeriveParametersNotSupported(command); 119throw ADP.InvalidCommandType(command.CommandType); 121if (ADP.IsEmpty(command.CommandText)) { 122throw ADP.CommandTextRequired(ADP.DeriveParameters); 128throw ADP.ConnectionRequired(ADP.DeriveParameters); 134throw ADP.OpenConnectionRequired(ADP.DeriveParameters, state); 172string quote = connection.QuoteChar(ADP.DeriveParameters); 242ADP.CheckArgumentNull(unquotedIdentifier, "unquotedIdentifier"); 248if (ADP.IsEmpty(quotePrefix) == true) { 254throw ADP.QuotePrefixNotSet(ADP.QuoteIdentifier); 257quotePrefix = connection.QuoteChar(ADP.QuoteIdentifier); 264if ((ADP.IsEmpty(quotePrefix) == false) && (quotePrefix != " ")) { 265return ADP.BuildQuotedString(quotePrefix,quoteSuffix,unquotedIdentifier); 290ADP.CheckArgumentNull(quotedIdentifier, "quotedIdentifier"); 297if (ADP.IsEmpty(quotePrefix) == true) { 303throw ADP.QuotePrefixNotSet(ADP.UnquoteIdentifier); 306quotePrefix = connection.QuoteChar(ADP.UnquoteIdentifier); 314if ((ADP.IsEmpty(quotePrefix) == false) || (quotePrefix != " ")) { 317ADP.RemoveStringQuotes(quotePrefix, quoteSuffix, quotedIdentifier, out unquotedIdentifier);
fx\src\data\System\Data\Odbc\OdbcConnection.cs (22)
29private int connectionTimeout = ADP.DefaultConnectionTimeout; 77DefaultValue(ADP.DefaultConnectionTimeout), 203return ADP.StrEmpty; 218ADP.TraceExceptionWithoutRethrow(e); 287throw ADP.OpenConnectionRequired(method, state); // MDAC 68323 303throw ADP.ConnectionIsDisabled(innerException); 507if (ADP.NeedManualEnlistment()) { 519if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 522ADP.TraceExceptionWithoutRethrow(e); 537throw ADP.TransactionRequired(method); 541throw ADP.TransactionConnectionMismatch(); 550throw ADP.TransactionConnectionMismatch(); 562throw ADP.OpenReaderExists(); 564throw ADP.OpenConnectionRequired(method, state); 792CheckState(ADP.BeginTransaction); // MDAC 68323 797throw ADP.ParallelTransactionsNotSupported(this); 812throw ADP.InvalidIsolationLevel(isolevel); 829CheckState(ADP.ChangeDatabase); 833throw ADP.EmptyDatabaseName(); 836throw ADP.DatabaseNameTooLong(); 853throw ADP.LocalTransactionPresent(); 856SysTx.IDtcTransaction oleTxTransaction = ADP.GetOletxTransaction(transaction);
fx\src\data\System\Data\Odbc\OdbcConnectionFactory.cs (2)
43Debug.Assert(!ADP.IsEmpty(connectionString), "empty connectionString"); 102XMLStream = ADP.GetXmlStreamFromValues(values,metaDataXML);
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (6)
38throw ADP.ArgumentNull("connection"); 41throw ADP.ArgumentNull("constr"); 115throw ADP.InvalidIsolationLevel(isolevel); 195retcode = UnsafeNativeMethods.SQLDriverConnectW(this, ADP.PtrZero, connectionString, ODBC32.SQL_NTS, ADP.PtrZero, 0, out cbActualSize, (short)ODBC32.SQL_DRIVER.NOPROMPT); 242ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), ADP.PtrZero);
fx\src\data\System\Data\Odbc\OdbcConnectionStringbuilder.cs (11)
63if (!ADP.IsEmpty(connectionString)) { 70ADP.CheckArgumentNull(keyword, "keyword"); 80ADP.CheckArgumentNull(keyword, "keyword"); 90throw ADP.KeywordNotSupported(keyword); 195ADP.CheckArgumentNull(keyword, "keyword"); 210throw ADP.KeywordNotSupported(_validKeywords[(int)index]); 254ADP.CheckArgumentNull(keyword, "keyword"); 281throw ADP.KeywordNotSupported(_validKeywords[(int)index]); 286ADP.CheckArgumentNull(value, keyword); 291ADP.CheckArgumentNull(keyword, "keyword"); 315throw ADP.ArgumentNull("destinationType");
fx\src\data\System\Data\Odbc\OdbcDataAdapter.cs (1)
137OdbcRowUpdatingEventHandler d = (OdbcRowUpdatingEventHandler) ADP.FindBuilder(handler);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (48)
143throw ADP.DataReaderClosed("Depth"); 152throw ADP.DataReaderClosed("FieldCount"); 177throw ADP.DataReaderClosed("HasRows"); 351throw ADP.DataReaderNoData(); 366throw ADP.DataReaderNoData(); 380throw ADP.DataReaderNoData(); 386throw ADP.DataReaderNoData(); 396throw ADP.DataReaderNoData(); 482throw ADP.DataReaderNoData(); 499throw ADP.DataReaderNoData(); 510throw ADP.DataReaderNoData(); 600throw ADP.DataReaderNoData(); 615throw ADP.DataReaderNoData(); 630throw ADP.DataReaderNoData(); 645throw ADP.DataReaderNoData(); 668throw ADP.DataReaderNoData(); 683throw ADP.DataReaderNoData(); 698throw ADP.DataReaderNoData(); 714throw ADP.DataReaderNoData(); 730throw ADP.DataReaderNoData(); 761throw ADP.DataReaderNoData(); 776throw ADP.DataReaderNoData(); 792throw ADP.DataReaderNoData(); 888throw ADP.DataReaderNoData(); 904throw ADP.DataReaderNoData(); 929throw ADP.DataReaderNoData(); 932throw ADP.DataReaderNoData(); 936throw ADP.ArgumentOutOfRange("dataIndex"); 939throw ADP.ArgumentOutOfRange("bufferIndex"); 942throw ADP.ArgumentOutOfRange("length"); 976throw ADP.ArgumentOutOfRange("dataIndex"); 1071throw ADP.InvalidCast(); 1102throw ADP.NonSeqByteAccess( 1145throw ADP.InvalidCast(); 1212throw ADP.InvalidCast(); 1510throw ADP.DataReaderNoData(); 1587throw ADP.DataReaderClosed("Read"); 1689throw ADP.DataReaderClosed("NextResult"); 1897QualifiedTableName qualifiedTableName = new QualifiedTableName(Connection.QuoteChar(ADP.GetSchemaTable)); 1910QualifiedTableName qualifiedTableName = new QualifiedTableName(Connection.QuoteChar(ADP.GetSchemaTable), GetTableNameFromCommandText()); 1911if (!ADP.IsEmpty(qualifiedTableName.Table)) { // fxcop 1959throw ADP.DataReaderClosed("GetSchemaTable"); // can't use closed connection 2355if (ADP.IsEmpty(currentindexname)){ 2370if (ADP.IsEmpty(columnname)) { 2378if (!ADP.IsEmpty(tablename)) { 2405if (ADP.IsEmpty(localcmdtext)) { // fxcop 2410CStringTokenizer tokenstmt = new CStringTokenizer(localcmdtext, Connection.QuoteChar(ADP.GetSchemaTable)[0], Connection.EscapeChar(ADP.GetSchemaTable));
fx\src\data\System\Data\Odbc\OdbcEnvironment.cs (1)
25ADP.CheckVersionMDAC(true);
fx\src\data\System\Data\Odbc\OdbcException.cs (1)
74return ADP.IsEmpty(source) ? "" : source; // base.Source;
fx\src\data\System\Data\Odbc\OdbcHandle.cs (5)
81if((ADP.PtrZero == base.handle) || (ODBC32.RetCode.SUCCESS != retcode)) { 114if (ADP.PtrZero == base.handle) { 156Debug.Assert(ADP.PtrZero == handle, "unknown handle type"); 189sqlState = ADP.StrEmpty; 204sqlState = ADP.StrEmpty;
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (21)
66throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.MetaDataCollections); 190throw ADP.OdbcNoTypesFromProvider(); 489throw ADP.TooManyRestrictions(collectionName); 538if (ADP.IsEmptyArray(restrictions) == false) { 539throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataSourceInformation); 545throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataSourceInformation); 553throw ADP.IncorrectNumberOfDataSourceInformationRows(); 564if (!ADP.IsEmpty(stringValue)) { 566ADP.EscapeSpecialCharacters(stringValue,patternEscaped); 685stringValue = connection.QuoteChar(ADP.GetSchema); 697ADP.EscapeSpecialCharacters(stringValue,scratchStringBuilder ); 701ADP.EscapeSpecialCharacters(stringValue, scratchStringBuilder); 744if (ADP.IsEmptyArray(restrictions) == false){ 745throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataTypes); 753throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes); 904throw ADP.InvalidRestrictionValue(OdbcMetaDataCollectionNames.Procedures,"PROCEDURE_TYPE",restrictions[indexOfProcedureType]); 926if (ADP.IsEmptyArray(restrictions) == false){ 927throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.ReservedWords); 933throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords); 941throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords); 1068throw ADP.UnableToBuildCollection(collectionName);
fx\src\data\System\Data\Odbc\OdbcParameter.cs (14)
222return ((null != parameterName) ? parameterName : ADP.StrEmpty); 299return Math.Min((int)_internalPrecision,ADP.DecimalMaxPrecision); 311throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 384return Math.Min((int)_internalPrecision,ADP.DecimalMaxPrecision); 427throw ADP.UninitializedParameterSize(ordinal, _bindtype._type); 485return ADP.DecimalMaxPrecision; 488return ADP.DecimalMaxPrecision28; 563throw ADP.OffsetOutOfRangeException(); 568throw ADP.OffsetOutOfRangeException(); 573throw ADP.OffsetOutOfRangeException(); 877if (!ADP.IsCatchableExceptionType(e)) { 880throw ADP.ParameterConversionFailed(value, _typemap._type, e); // WebData 75433 1014throw ADP.ArgumentNull("destinationType"); 1029if (!ADP.IsEmpty(p.SourceColumn)) {
fx\src\data\System\Data\Odbc\OdbcPermission.cs (2)
42base.Add(ADP.StrEmpty, ADP.StrEmpty, KeyRestrictionBehavior.AllowOnly);
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (3)
81ODBC32.RetCode retcode = UnsafeNativeMethods.SQLBindCol(this, checked((ushort)columnNumber), targetType, ADP.PtrZero, ADP.PtrZero, srLen_or_Ind); 177ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetStmtAttrW(this, attribute, out value, ADP.PtrSize, out stringLength);
fx\src\data\System\Data\Odbc\OdbcTransaction.cs (7)
45throw ADP.TransactionZombied(this); 83throw ADP.TransactionZombied(this); 86connection.CheckState(ADP.CommitTransaction); // MDAC 68289 119ADP.TraceExceptionWithoutRethrow(e); 125if (!ADP.IsCatchableExceptionType(e)) { 144throw ADP.TransactionZombied(this); 146connection.CheckState(ADP.RollbackTransaction); // MDAC 68289
fx\src\data\System\Data\Odbc\OdbcUtils.cs (2)
323IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 483if ((_idx == _len) || ADP.IsEmpty(nextToken)) { // fxcop
fx\src\data\System\Data\OleDb\ColumnBinding.cs (11)
221throw ADP.InvalidOffsetValue(offset); 579if (ADP.PtrZero != ptr) { 608if (ADP.PtrZero != ptr) { 630IntPtr ptr = ADP.PtrZero; 634ptr = ADP.IntPtrOffset(ptr, ValueBindingOffset); 649if (ADP.PtrZero != ptr) { 670IntPtr ptr = ADP.PtrZero; 674ptr = ADP.IntPtrOffset(ptr, ValueBindingOffset); 687IntPtr ptr = ADP.PtrZero; 691ptr = ADP.IntPtrOffset(ptr, ValueBindingOffset); 1476return ADP.InvalidCast(); //
fx\src\data\System\Data\OleDb\DBBindings.cs (7)
168_dbbindings[_index].obLength = (IntPtr) (_dataBufferSize + ADP.PtrSize); 169_dbbindings[_index].obValue = (IntPtr) (_dataBufferSize + ADP.PtrSize + ADP.PtrSize); 170_dataBufferSize += ADP.PtrSize + ADP.PtrSize; 260if (ADP.IsDirection(parameters[i], ParameterDirection.Input)) { 278if (ADP.IsDirection(parameters[i], ParameterDirection.Output)) {
fx\src\data\System\Data\OleDb\DBPropSet.cs (21)
40if (ADP.PtrZero != base.handle) { 44if (ADP.PtrZero == base.handle) { 123if (ADP.PtrZero != ptr) { 129if(ADP.PtrZero != rgProperties) { 130int cProperties = Marshal.ReadInt32(ptr, offset + ADP.PtrSize); 132IntPtr vptr = ADP.IntPtrOffset(rgProperties, ODB.OffsetOf_tagDBPROP_Value); 133for (int k = 0; k < cProperties; ++k, vptr = ADP.IntPtrOffset(vptr, ODB.SizeOf_tagDBPROP)) { 156throw ADP.InternalError(ADP.InternalErrorCode.InvalidBuffer, lastErrorFromProvider); 159throw ADP.InternalError(ADP.InternalErrorCode.InvalidBuffer); 170IntPtr propertySetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index * ODB.SizeOf_tagDBPROPSET); 177IntPtr ptr = ADP.IntPtrOffset(propset.rgProperties, i * ODB.SizeOf_tagDBPROP); 194throw ADP.InternalError(ADP.InternalErrorCode.InvalidBuffer, lastErrorFromProvider); 197throw ADP.InternalError(ADP.InternalErrorCode.InvalidBuffer); 211IntPtr propsetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index * ODB.SizeOf_tagDBPROPSET); 217if (ADP.PtrZero != propset.rgProperties) { 226if (ADP.PtrZero == propset.rgProperties) { 232IntPtr propertyPtr = ADP.IntPtrOffset(propset.rgProperties, i * ODB.SizeOf_tagDBPROP);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (7)
160static private readonly NativeDBType D_BSTR = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.BSTR, NativeDBType.BSTR, S_BSTR, typeof(System.String), NativeDBType.BSTR, DbType.String ); // 2 - integer4 (pointer) 175static private readonly NativeDBType D_IDispatch = new NativeDBType(0xff, ADP.PtrSize, true, false, OleDbType.IDispatch, NativeDBType.IDISPATCH, S_IDISPATCH, typeof(System.Object), NativeDBType.IDISPATCH, DbType.Object ); // 17 - integer4 (pointer) 176static private readonly NativeDBType D_IUnknown = new NativeDBType(0xff, ADP.PtrSize, true, false, OleDbType.IUnknown, NativeDBType.IUNKNOWN, S_IUNKNOWN, typeof(System.Object), NativeDBType.IUNKNOWN, DbType.Object ); // 18 - integer4 (pointer) // MDAC 64040 195static private readonly NativeDBType D_Chapter = new NativeDBType(0xff, ADP.PtrSize, false, false, OleDbType.Empty, NativeDBType.HCHAPTER, S_UDT, typeof(IDataReader), NativeDBType.HCHAPTER, DbType.Object ); // 36 - (hierarchical chaper) 298case TypeCode.DBNull: throw ADP.InvalidDataType(TypeCode.DBNull); 314default: throw ADP.UnknownDataTypeCode(value.GetType(), ic.GetTypeCode()); 360throw ADP.DbTypeNotSupported(dbType, typeof(OleDbType)); // MDAC 66009
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (49)
88if (ADP.IsEmpty(value)) { return inner; } 89return ADP.InvalidOperation(value, inner); 92return ADP.InvalidOperation(Res.GetString(Res.OleDb_UninitializedParameters, index.ToString(CultureInfo.InvariantCulture), dbtype.ToString())); 95return ADP.DataAdapter(Res.GetString(Res.OleDb_BadStatus_ParamAcc, index.ToString(CultureInfo.InvariantCulture), status.ToString())); 98return ADP.DataAdapter(Res.GetString(Res.OleDb_NoProviderSupportForParameters, provider), inner); 101return ADP.DataAdapter(Res.GetString(Res.OleDb_NoProviderSupportForSProcResetParameters, provider)); 153if (ADP.IsEmpty(value)) { return inner; } 154return ADP.InvalidOperation(value, inner); 159return ADP.Argument(Res.GetString(Res.OleDb_SchemaRowsetsNotSupported, "IDBSchemaRowset", provider)); 163if (!ADP.IsEmpty(provider)) { 169ADP.TraceExceptionAsReturnValue(e); 173return ADP.DataAdapter(Res.GetString(Res.OleDb_MDACNotAvailable), inner); 176return ADP.Argument(Res.GetString(Res.OleDb_MSDASQLNotSupported)); // MDAC 69975 179return ADP.DataAdapter(Res.GetString(Res.OleDb_CommandTextNotSupported, provider), inner); // 72632 182return ADP.DataAdapter(Res.GetString(Res.OleDb_PossiblePromptNotUserInteractive)); 186return ADP.DataAdapter(Res.GetString(Res.OleDb_ProviderUnavailable, provider), inner); 189return ADP.DataAdapter(Res.GetString(Res.OleDb_TransactionsNotSupported, provider), inner); // 72632 192return ADP.Argument(Res.GetString(Res.OleDb_AsynchronousNotSupported)); 195return ADP.Argument(Res.GetString(Res.OleDb_NoProviderSpecified)); 198return ADP.Argument(Res.GetString(Res.OleDb_InvalidProviderSpecified)); 201return ADP.Argument(Res.GetString(Res.OleDb_InvalidRestrictionsDbInfoKeywords), parameter); 204return ADP.Argument(Res.GetString(Res.OleDb_InvalidRestrictionsDbInfoLiteral), parameter); 207return ADP.Argument(Res.GetString(Res.OleDb_InvalidRestrictionsSchemaGuids), parameter); 210return ADP.Argument(Res.GetString(Res.OleDb_NotSupportedSchemaTable, OleDbSchemaGuid.GetTextFromValue(schema), connection.Provider)); 215return ADP.InvalidEnumerationValue(typeof(OleDbType), (int)value); 220return ADP.DataAdapter(Res.GetString(Res.OleDb_BadAccessor)); 223return ADP.InvalidCast(); 226return ADP.InvalidCast(Res.GetString(Res.OleDb_CantConvertValue)); 229return ADP.DataAdapter(Res.GetString(Res.OleDb_SignMismatch, type.Name)); 232return ADP.DataAdapter(Res.GetString(Res.OleDb_DataOverflow, type.Name)); 235return ADP.DataAdapter(Res.GetString(Res.OleDb_CantCreate, type.Name)); 238return ADP.DataAdapter(Res.GetString(Res.OleDb_Unavailable, type.Name)); 241return ADP.DataAdapter(Res.GetString(Res.OleDb_UnexpectedStatusValue, status.ToString())); 244return ADP.DataAdapter(Res.GetString(Res.OleDb_GVtUnknown, wType.ToString("X4", CultureInfo.InvariantCulture), wType.ToString(CultureInfo.InvariantCulture))); 247return ADP.DataAdapter(Res.GetString(Res.OleDb_SVtUnknown, wType.ToString("X4", CultureInfo.InvariantCulture), wType.ToString(CultureInfo.InvariantCulture))); 252return ADP.DataAdapter(Res.GetString(Res.OleDb_BadStatusRowAccessor, i.ToString(CultureInfo.InvariantCulture), rowStatus.ToString())); 255return ADP.InvalidOperation(Res.GetString(Res.OleDb_ThreadApartmentState), innerException); 260return ADP.Argument(Res.GetString(Res.OleDb_Fill_NotADODB), parameter); 263return ADP.Argument(Res.GetString(Res.OleDb_Fill_EmptyRecordSet, "IRowset"), parameter, innerException); 266return ADP.Argument(Res.GetString(Res.OleDb_Fill_EmptyRecord), parameter, innerException); 280return ADP.InvalidOperation(Res.GetString(Res.OleDb_DBBindingGetVector)); 287if (((int)hr < 0) && ADP.IsEmpty(message)) { 290if (ADP.IsEmpty(message)) { 298throw ADP.Argument(Res.OleDb_ISourcesRowsetNotSupported); 303return ADP.InvalidOperation(Res.GetString(Res.OleDb_IDBInfoNotSupported)); 501static internal readonly IntPtr DB_INVALID_HACCESSOR = ADP.PtrZero; 502static internal readonly IntPtr DB_NULL_HCHAPTER = ADP.PtrZero; 503static internal readonly IntPtr DB_NULL_HROW = ADP.PtrZero; 515static internal readonly int SizeOf_Variant = 8 + (2 * ADP.PtrSize); // 16 on 32bit, 24 on 64bit
fx\src\data\System\Data\OleDb\OleDbCommand.cs (33)
35private int _commandTimeout = ADP.DefaultCommandTimeout; 122return ((null != value) ? value : ADP.StrEmpty); 130if (0 != ADP.SrcCompare(_commandText, value)) { 148throw ADP.InvalidCommandTimeout(value); 158if (ADP.DefaultCommandTimeout != _commandTimeout) { 160_commandTimeout = ADP.DefaultCommandTimeout; 165return (ADP.DefaultCommandTimeout != _commandTimeout); 188throw ADP.InvalidCommandType(value); 339throw ADP.InvalidUpdateRowSource(value); 568return ExecuteReaderInternal(behavior, ADP.ExecuteReader); 610throw ADP.InvalidCommandType(CommandType); 679if (!ADP.IsCatchableExceptionType(e)) { 700if (!ADP.IsCatchableExceptionType(e)) { 778hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_IMultipleResults, dbParams, out _recordsAffected, out executeResult); 795hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_IRowset, dbParams, out _recordsAffected, out executeResult); 800hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_NULL, dbParams, out _recordsAffected, out executeResult); 814hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_IRow, dbParams, out _recordsAffected, out executeResult); 861ExecuteReaderInternal(CommandBehavior.Default, ADP.ExecuteNonQuery); 862return ADP.IntPtrToInt32(_recordsAffected); 877using(OleDbDataReader reader = ExecuteReaderInternal(CommandBehavior.Default, ADP.ExecuteScalar)) { 920hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, propSet.PropertySetCount, propSet.DangerousGetHandle(), out executeResult); 932hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 938hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 951_recordsAffected = ADP.RecordsUnaffected; 957if (ADP.IsEmpty(cmdtxt)) { 958return ADP.StrEmpty; 979throw ADP.InvalidCommandType(cmdtype); 1106ValidateConnectionAndTransaction(ADP.Prepare); 1261throw ADP.ConnectionRequired(method); 1270throw ADP.OpenReaderExists();
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (27)
102throw ADP.ArgumentNull("command"); 106throw ADP.DeriveParametersNotSupported(command); 111throw ADP.DeriveParametersNotSupported(command); 113throw ADP.InvalidCommandType(command.CommandType); 115if (ADP.IsEmpty(command.CommandText)) { 116throw ADP.CommandTextRequired(ADP.DeriveParameters); 120throw ADP.ConnectionRequired(ADP.DeriveParameters); 124throw ADP.OpenConnectionRequired(ADP.DeriveParameters, state); 144connection.GetLiteralQuotes(ADP.DeriveParameters, out quotePrefix, out quoteSuffix); 148throw ADP.NoStoredProcedureExists(command.CommandText); 290throw ADP.NoStoredProcedureExists(command.CommandText); 298throw ADP.NoStoredProcedureExists(command.CommandText); 328ADP.CheckArgumentNull(unquotedIdentifier, "unquotedIdentifier"); 334if (ADP.IsEmpty(quotePrefix) == true) { 340throw ADP.QuotePrefixNotSet(ADP.QuoteIdentifier); 343connection.GetLiteralQuotes(ADP.QuoteIdentifier, out quotePrefix, out quoteSuffix); 351return ADP.BuildQuotedString(quotePrefix,quoteSuffix,unquotedIdentifier); 370ADP.CheckArgumentNull(quotedIdentifier, "quotedIdentifier"); 377if (ADP.IsEmpty(quotePrefix) == true) { 383throw ADP.QuotePrefixNotSet(ADP.UnquoteIdentifier); 386connection.GetLiteralQuotes(ADP.UnquoteIdentifier, out quotePrefix, out quoteSuffix); 397ADP.RemoveStringQuotes(quotePrefix, quoteSuffix, quotedIdentifier, out unquotedIdentifier);
fx\src\data\System\Data\OleDb\OleDbConnection.cs (17)
86value = (null != constr) ? constr.ConnectTimeout : ADP.DefaultConnectionTimeout; 92return ADP.DefaultConnectionTimeout; 111object value = (null != constr) ? constr.InitialCatalog : ADP.StrEmpty; 124value = (null != constr) ? constr.InitialCatalog : ADP.StrEmpty; 145object value = (null != constr) ? constr.DataSource : ADP.StrEmpty; 155value = (null != constr) ? constr.DataSource : ADP.StrEmpty; 191return ((null != value) ? value : ADP.StrEmpty); 326CheckStateOpen(ADP.ChangeDatabase); 328throw ADP.EmptyDatabaseName(); 340throw ADP.OpenConnectionRequired(method, state); 442CheckStateOpen(ADP.GetOleDbSchemaTable); 509if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 513ADP.TraceExceptionWithoutRethrow(e); 530&& ADP.NeedManualEnlistment()) { 536CheckStateOpen(ADP.SetProperties); 600e = ADP.OpenReaderExists(e); 623ADP.TraceExceptionAsReturnValue(e);
fx\src\data\System\Data\OleDb\OleDbConnectionFactory.cs (2)
43Debug.Assert(!ADP.IsEmpty(connectionString), "null connectionString"); 88XMLStream = ADP.GetXmlStreamFromValues(values,metaDataXML);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (19)
241throw ADP.NotSupported(); 249throw ADP.ParallelTransactionsNotSupported(outerConnection); 312throw ADP.LocalTransactionPresent(); 320SysTx.IDtcTransaction oleTxTransaction = ADP.GetOletxTransaction(transaction); 394IntPtr literalInfo = ADP.PtrZero; 505IntPtr literalInfo = ADP.PtrZero; 541IntPtr schemaGuids = ADP.PtrZero; 542IntPtr schemaRestrictions = ADP.PtrZero; 551if (ADP.PtrZero != schemaGuids) { 553IntPtr ptr = ADP.IntPtrOffset(schemaGuids, i * ODB.SizeOf_Guid); 557if (ADP.PtrZero != schemaRestrictions) { 586hr = dbSchemaRowset.GetRowset(ADP.PtrZero, ref schema, restrictions.Length, restrictions, ref ODB.IID_IRowset, 0, ADP.PtrZero, out rowset); 666if (!ADP.IsCatchableExceptionType(e)) { 691ADP.CheckVersionMDAC(false); 720throw ADP.TransactionRequired(method); 726throw ADP.TransactionConnectionMismatch(); 729throw ADP.TransactionCompleted(); 740throw ADP.TransactionConnectionMismatch();
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (27)
101PossiblePrompt = ((!ADP.IsEmpty(prompt) && (0 != String.Compare(prompt, VALUES.NoPrompt, StringComparison.OrdinalIgnoreCase))) 102|| !ADP.IsEmpty(this[KEY.WindowHandle])); 111if (!ADP.IsEmpty(udlFileName)) { // fail via new FileStream vs. GetFullPath 112udlFileName = ADP.GetFullPath(udlFileName); // MDAC 82833 117if (!ADP.IsEmpty(udlConnectionString)) { 122if (validate || ADP.IsEmpty(udlConnectionString)) { 129get { return base.ConvertValueToInt32(KEY.Connect_Timeout, ADP.DefaultConnectionTimeout); } 133get { return base.ConvertValueToString(KEY.Data_Source, ADP.StrEmpty); } 137get { return base.ConvertValueToString(KEY.Initial_Catalog, ADP.StrEmpty); } 142Debug.Assert(!ADP.IsEmpty(this[KEY.Provider]), "no Provider"); 225object value = ADP.LocalMachineRegistryValue(UDL.Location, UDL.Pooling); 246Debug.Assert(!ADP.IsEmpty(udlfilename), "empty filename didn't fail"); 249Debug.Assert(udlfilename == ADP.GetFullPath(udlfilename), "only cache full path filenames"); // MDAC 82833 287int hdrlength = ADP.CharSize*UDL.Header.Length; 290if (length < hdrlength || (0 != length%ADP.CharSize)) { 291failure = ADP.InvalidUDL(); 297failure = ADP.InvalidUDL(); 300failure = ADP.InvalidUDL(); 312if (!ADP.IsCatchableExceptionType(e)) { 316throw ADP.UdlFileError(e); 333throw ADP.InvalidConnectTimeoutValue(); 350progid = ConvertValueToString(KEY.Provider, ADP.StrEmpty).Trim(); 359bool hasOleDBServices = (base.ContainsKey(KEY.Ole_DB_Services) && !ADP.IsEmpty((string)base[KEY.Ole_DB_Services])); 361string classid = (string) ADP.ClassesRootRegistryValue(progid + "\\CLSID", String.Empty); 368object tmp = ADP.ClassesRootRegistryValue("CLSID\\{" + classidProvider.ToString("D", CultureInfo.InvariantCulture) + "}", ODB.OLEDB_SERVICES); 378ADP.TraceExceptionWithoutRethrow(e); 405if (ADP.IsEmpty(progid)) {
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (15)
81if (!ADP.IsEmpty(connectionString)) { 88ADP.CheckArgumentNull(keyword, "keyword"); 103ADP.CheckArgumentNull(keyword, "keyword"); 117throw ADP.KeywordNotSupported(keyword); 265ADP.CheckArgumentNull(keyword, "keyword"); 298throw ADP.KeywordNotSupported(_validKeywords[(int)index]); 303ADP.CheckArgumentNull(keyword, "keyword"); 340throw ADP.KeywordNotSupported(_validKeywords[(int)index]); 361ADP.CheckArgumentNull(value, keyword); 366ADP.CheckArgumentNull(keyword, "keyword"); 388if (!ADP.IsEmpty(provider)) { 469ADP.TraceExceptionWithoutRethrow(e); 472ADP.TraceExceptionWithoutRethrow(e); 475ADP.TraceExceptionWithoutRethrow(e); 754throw ADP.ArgumentNull("destinationType");
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (11)
138OleDbRowUpdatingEventHandler d = (OleDbRowUpdatingEventHandler) ADP.FindBuilder(handler); 175throw ADP.ArgumentNull("dataTable"); 178throw ADP.ArgumentNull("adodb"); 199throw ADP.ArgumentNull("dataSet"); 202throw ADP.ArgumentNull("adodb"); 204if (ADP.IsEmpty(srcTable)) { 205throw ADP.FillRequiresSourceTableName("srcTable"); 350if (!ADP.IsCatchableExceptionType(e)) { 367dataReader.InitializeIRowset(result, chapterHandle, ADP.RecordsUnaffected); 398if (!ADP.IsCatchableExceptionType(e)) { 412dataReader.InitializeIRow(result, ADP.RecordsUnaffected);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (62)
63private IntPtr _recordsAffected = ADP.RecordsUnaffected; 140throw ADP.DataReaderClosed("Depth"); 150throw ADP.DataReaderClosed("FieldCount"); 161throw ADP.DataReaderClosed("HasRows"); 185return ADP.IntPtrToInt32(_recordsAffected); 256throw ADP.DataReaderClosed("GetSchemaTable"); 441IntPtr columnCount = ADP.PtrZero; // column count 442IntPtr columnInfos = ADP.PtrZero; // ptr to byvalue tagDBCOLUMNINFO[] 467Marshal.PtrToStructure(ADP.IntPtrOffset(columnInfos, offset), dbColumnInfo); 527if (ADP.PtrZero != dbColumnInfo.columnid.ulPropid) { 535info.propid = ADP.PtrZero; 574hr = icolumnsRowset.GetColumnsRowset(ADP.PtrZero, cOptColumns, prgOptColumns, ref ODB.IID_IRowset, 0, ADP.PtrZero, out rowset); 775throw ADP.InvalidSourceBufferIndex(0, dataIndex, "dataIndex"); 782throw ADP.NonSeqByteAccess(dataIndex, _sequentialBytesRead, method); 790ColumnBinding binding = DoSequentialCheck(ordinal, dataIndex, ADP.GetBytes); 799throw ADP.InvalidSourceBufferIndex(value.Length, srcIndex, "dataIndex"); 802throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 810throw ADP.InvalidDataLength(length); 819ColumnBinding binding = DoSequentialCheck(ordinal, dataIndex, ADP.GetChars); 829throw ADP.InvalidSourceBufferIndex(value.Length, srcIndex, "dataIndex"); 832throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 840throw ADP.InvalidDataLength(length); 850throw ADP.NotSupported(); 883reader.InitializeIRowset(result, chapterHandle, ADP.RecordsUnaffected); 900throw ADP.DataReaderNoData(); 926throw ADP.DataReaderNoData(); 959throw ADP.DataReaderNoData(); 965throw ADP.DataReaderNoData(); 984throw ADP.DataReaderNoData(); 987throw ADP.NonSequentialColumnAccess(ordinal, _nextValueForRetrieval); 1022throw ADP.DataReaderNoData(); 1039throw ADP.ArgumentNull("values"); 1091throw ADP.DataReaderClosed("VisibleFieldCount"); 1106recordsAffected = ADP.RecordsUnaffected; 1122hr = imultipleResults.GetResult(ADP.PtrZero, ODB.DBRESULTFLAG_DEFAULT, ref ODB.IID_NULL, out affected, out result); 1181throw ADP.DataReaderClosed("NextResult"); 1205hr = imultipleResults.GetResult(ADP.PtrZero, ODB.DBRESULTFLAG_DEFAULT, ref ODB.IID_IRowset, out affected, out result); 1265throw ADP.DataReaderClosed("Read"); 1355if ((ADP.PtrZero == _rowHandleFetchCount) || (20 <= (int)_rowHandleFetchCount)) { 1361if ((ADP.PtrZero == _rowHandleFetchCount) || (20 <= (long)_rowHandleFetchCount)) { 1453maxLen = ADP.PtrSize; 1468maxLen = ADP.PtrSize; 1485maxLen = ADP.PtrSize; 1628hr = irowset.ReleaseRows(_rowFetchedCount, _rowHandleNativeBuffer, ADP.PtrZero, ADP.PtrZero, ADP.PtrZero); 1772else if ((0 != ADP.SrcCompare(baseTableName, info.baseTableName)) 1773|| (0 != ADP.SrcCompare(baseCatalogName, catalogName)) 1774|| (0 != ADP.SrcCompare(baseSchemaName, schemaName))) { // MDAC 71808 1790baseCatalogName = ADP.IsEmpty(baseCatalogName) ? null : baseCatalogName; 1791baseSchemaName = ADP.IsEmpty(baseSchemaName) ? null : baseSchemaName; 1796_connection.GetLiteralQuotes(ADP.GetSchemaTable, out s, out p); 1811if (!ADP.IsEmpty(basecolumname)) { 1817if (!ADP.IsEmpty(basecolumname)) { 1850if (!ADP.IsCatchableExceptionType(e)) { 1854ADP.TraceExceptionWithoutRethrow(e); 1901if (!ADP.IsCatchableExceptionType(e)) { 1905ADP.TraceExceptionWithoutRethrow(e); 2084if (4 == ADP.PtrSize) { 2092if (4 == ADP.PtrSize) { 2096info.size = ADP.IntPtrToInt32((IntPtr)unchecked((long)columnsize.columnBinding.Value_UI8()));
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (3)
60IntPtr propSets = ADP.PtrZero; 63OleDbHResult hr = srcrowset.GetSourcesRowset(ADP.PtrZero, ODB.IID_IRowset, propCount, propSets, out value); 72dataReader.InitializeIRowset(value, ChapterHandle.DB_NULL_HCHAPTER, ADP.RecordsUnaffected);
fx\src\data\System\Data\OleDb\OleDbError.cs (5)
53if ((hr < 0) && ADP.IsEmpty(this.message)) { 78if ((hr < 0) && ADP.IsEmpty(this.source)) { 104return ((null != message) ? message : ADP.StrEmpty); 117return ((null != source) ? source : ADP.StrEmpty); 124return ((null != sqlState) ? sqlState : ADP.StrEmpty);
fx\src\data\System\Data\OleDb\OleDbException.cs (2)
112if (ADP.IsEmpty(message)) { 144throw ADP.ArgumentNull("destinationType");
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (33)
67throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.MetaDataCollections); 89throw ADP.InvalidXmlMissingColumn(DbMetaDataCollectionNames.MetaDataCollections,_populationMechanism); 93throw ADP.InvalidXmlMissingColumn(DbMetaDataCollectionNames.MetaDataCollections,_collectionName); 99throw ADP.InvalidXmlMissingColumn(DbMetaDataCollectionNames.Restrictions,_collectionName); 106if (ADP.IsEmpty(populationMechanismValue )) { 107throw ADP.InvalidXmlInvalidValue(DbMetaDataCollectionNames.MetaDataCollections,_populationMechanism); 110if (ADP.IsEmpty(collectionNameValue)) { 111throw ADP.InvalidXmlInvalidValue(DbMetaDataCollectionNames.MetaDataCollections,_collectionName); 144if (ADP.IsEmpty(restrictionCollectionNameValue)) { 145throw ADP.InvalidXmlInvalidValue(DbMetaDataCollectionNames.Restrictions,_collectionName); 174ADP.EscapeSpecialCharacters(invalidStartingChars,regularExpression); 176ADP.EscapeSpecialCharacters(invalidChars,regularExpression); 189throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataSourceInformation); 197throw ADP.IncorrectNumberOfDataSourceInformationRows(); 208ADP.EscapeSpecialCharacters(catalogSeparatorPattern,patternEscaped); 213ADP.EscapeSpecialCharacters(schemaSeparatorPattern,patternEscaped); 220ADP.EscapeSpecialCharacters(schemaSeparatorPattern, patternEscaped); 299connection.GetLiteralQuotes(ADP.GetSchema, out quotePrefix, out quoteSuffix); 313ADP.EscapeSpecialCharacters(quoteSuffix,scratchStringBuilder ); 317ADP.EscapeSpecialCharacters(quotePrefix, scratchStringBuilder); 339throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes); 459throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords); 467throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.ReservedWords); 485if (ADP.IsEmptyArray(restrictions) == false){ 486throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataSourceInformation); 491if (ADP.IsEmptyArray(restrictions) == false){ 492throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataTypes); 497if (ADP.IsEmptyArray(restrictions) == false){ 498throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.ReservedWords); 521throw ADP.TooManyRestrictions(collectionName); 560throw ADP.InvalidRestrictionValue(collectionName,"TYPE",restrictions[indexRestrictionTypeSlot]); 594throw ADP.InvalidRestrictionValue(collectionName,"PROCEDURE_TYPE",restrictions[procedureRestrictionTypeSlot]); 609throw ADP.UnableToBuildCollection(collectionName);
fx\src\data\System\Data\OleDb\OleDbParameter.cs (16)
160return ((null != parameterName) ? parameterName : ADP.StrEmpty); 296bytecount = ADP.PtrSize; 314if (!ShouldSerializeSize() && ADP.IsDirection(this, ParameterDirection.Output)) { 315throw ADP.UninitializedParameterSize(index, _coerceMetaType.dataType); 345bytecount = ADP.PtrSize; 360bytecount = ADP.PtrSize; 364throw ADP.InvalidSizeValue(size); 375bindings.Name = ADP.PtrZero; 425if (!ADP.IsCatchableExceptionType(e)) { 429throw ADP.ParameterConversionFailed(value, destinationType.dataType, e); // WebData 75433 439if (ADP.IsNull(value)) { 474throw ADP.PrepareParameterType(cmd); 477throw ADP.PrepareParameterSize(cmd); 480throw ADP.PrepareParameterScale(cmd, _metaType.wType.ToString("G", CultureInfo.InvariantCulture)); 559throw ADP.ArgumentNull("destinationType"); 576if (!ADP.IsEmpty(p.SourceColumn)) {
fx\src\data\System\Data\OleDb\OleDbPermission.cs (5)
45base.Add(ADP.StrEmpty, ADP.StrEmpty, KeyRestrictionBehavior.AllowOnly); 66return ((null != providers) ? providers : ADP.StrEmpty); 70if (!ADP.IsEmpty(value)) { 99return ((null != providers) ? providers : ADP.StrEmpty);
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (6)
133throw ADP.InvalidIsolationLevel(isolevel); // MDAC 74269 153throw ADP.TransactionZombied(this); 178throw ADP.TransactionZombied(this); 181throw ADP.ParallelTransactionsNotSupported(Connection); 226throw ADP.TransactionZombied(this); 298throw ADP.TransactionZombied(this);
fx\src\data\System\Data\OleDb\PropertyIDSet.cs (5)
23static private readonly int PropertyIDSetAndValueSize = ODB.SizeOf_tagDBPROPIDSET + ADP.PtrSize; // sizeof(tagDBPROPIDSET) + sizeof(int) 35IntPtr ptr = ADP.IntPtrOffset(base.handle, PropertyIDSetSize); 38Marshal.WriteInt32(base.handle, ADP.PtrSize, /*propertyid count*/1); 40ptr = ADP.IntPtrOffset(base.handle, ODB.OffsetOf_tagDBPROPIDSET_PropertySet); 51IntPtr ptr = ADP.IntPtrOffset(base.handle, (i * PropertyIDSetSize) + ODB.OffsetOf_tagDBPROPIDSET_PropertySet);
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (6)
52if ((0 <= hr) && (ADP.PtrZero != handle)) { 70if (ADP.PtrZero != this.handle) { 77for (int i = 0; i < setCount; ++i, setPtr = ADP.IntPtrOffset(setPtr, ODB.SizeOf_tagDBPROPINFOSET)) { 82for(int k = 0; k < infoCount; ++k, infoPtr = ADP.IntPtrOffset(infoPtr, ODB.SizeOf_tagDBPROPINFO)) { 121int infoCount = Marshal.ReadInt32(ptr, offset + ADP.PtrSize); 124IntPtr valuePtr = ADP.IntPtrOffset(infoPtr, (k * ODB.SizeOf_tagDBPROPINFO) + ODB.OffsetOf_tagDBPROPINFO_Value);
fx\src\data\System\Data\OleDb\RowBinding.cs (34)
86return ADP.IntPtrOffset(DangerousGetHandle(), _headerLength); 95return ADP.IntPtrOffset(DangerousGetHandle(), valueOffset); 136IntPtr ptr = ADP.IntPtrOffset(buffer, (i * ODB.SizeOf_tagDBBINDING)); 175IntPtr buffer = ADP.IntPtrOffset(DangerousGetHandle(), offset); 195IntPtr buffer = ADP.PtrZero; 201buffer = ADP.IntPtrOffset(DangerousGetHandle(), offset); 210NativeOledbWrapper.MemoryCopy(ADP.IntPtrOffset(buffer,ODB.SizeOf_Variant), buffer, ODB.SizeOf_Variant); 227Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 242Marshal.WriteIntPtr(base.handle, offset + ADP.PtrSize, ptr); 258Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 261if (ADP.PtrZero == pinnedValue) { // empty array scenario 262pinnedValue = ADP.IntPtrOffset(base.handle, _emptyStringOffset); 272Marshal.WriteIntPtr(base.handle, offset + ADP.PtrSize, pinnedValue); // original parameter value 354Debug.Assert(ADP.PtrZero != buffer && _needToReset && _haveData, "shouldn't be calling ResetValues"); 356IntPtr ptr = ADP.IntPtrOffset(buffer, (i * ODB.SizeOf_tagDBBINDING)); 430IntPtr chapter = SafeNativeMethods.InterlockedExchangePointer(ADP.IntPtrOffset(buffer, valueOffset), ADP.PtrZero); 448IntPtr originalValue = Marshal.ReadIntPtr(buffer, valueOffset + ADP.PtrSize); 450if ((ADP.PtrZero != currentValue) && (currentValue != originalValue)) { 453if (ADP.PtrZero != originalValue) { 458Marshal.WriteIntPtr(buffer, valueOffset, ADP.PtrZero); 459Marshal.WriteIntPtr(buffer, valueOffset + ADP.PtrSize, ADP.PtrZero); 472IntPtr originalValue = Marshal.ReadIntPtr(buffer, valueOffset + ADP.PtrSize); 475if ((ADP.PtrZero != currentValue) && (currentValue != originalValue)) { 480Marshal.WriteIntPtr(buffer, valueOffset, ADP.PtrZero); 481Marshal.WriteIntPtr(buffer, valueOffset + ADP.PtrSize, ADP.PtrZero); 493IntPtr currentHandle = ADP.IntPtrOffset(buffer, valueOffset); 494IntPtr originalHandle = ADP.IntPtrOffset(buffer, valueOffset+ODB.SizeOf_Variant); 519IntPtr currentHandle = ADP.IntPtrOffset(buffer, valueOffset); 520IntPtr originalHandle = ADP.IntPtrOffset(buffer, valueOffset+NativeOledbWrapper.SizeOfPROPVARIANT); 541Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 549IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset);
fx\src\data\System\Data\OleDb\SafeHandles.cs (2)
91internal RowHandleBuffer(IntPtr rowHandleFetchCount) : base((int)rowHandleFetchCount*ADP.PtrSize) { 95IntPtr value = ReadIntPtr( index * ADP.PtrSize);
fx\src\data\System\Data\OperationAbortedException.cs (1)
35ADP.TraceExceptionAsReturnValue(e);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (26)
68Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 76IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 93Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 101IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 142Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 151IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 170Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 179IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 220Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 229IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 264Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 273IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 308Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 346Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 353IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 386Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 395IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 408Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 417IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 454Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 463IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 496Debug.Assert(0 == offset%ADP.PtrSize, "invalid alignment"); 505IntPtr ptr = ADP.IntPtrOffset(DangerousGetHandle(), offset); 660throw ADP.NumericToDecimalOverflow(); 687throw ADP.InternalError(ADP.InternalErrorCode.InvalidBuffer);
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (12)
29throw ADP.ClosedConnectionError(); 34throw ADP.ClosedConnectionError(); 38throw ADP.ClosedConnectionError(); 42throw ADP.ClosedConnectionError(); 50throw ADP.ClosedConnectionError(); 54throw ADP.ClosedConnectionError(); 58throw ADP.ClosedConnectionError(); 62throw ADP.ClosedConnectionError(); 76throw ADP.ConnectionAlreadyOpen(State); 121throw ADP.ConnectionAlreadyOpen(State); 129throw ADP.InternalConnectionError(ADP.ConnectionError.GetConnectionReturnsNull);
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (15)
80ADP.CheckArgumentNull(connection, "connection"); 97ADP.CheckArgumentNull(key.ConnectionString, "key.ConnectionString"); 121throw ADP.NotSupported(); 165if (!ADP.IsEmpty(key.ConnectionString)) { 245Transactions.Transaction originalTransaction = ADP.GetCurrentTransaction(); 248ADP.SetCurrentTransaction(retry.Task.AsyncState as Transactions.Transaction); 256ADP.SetCurrentTransaction(originalTransaction); 274retry.TrySetException(ADP.ExceptionWithStackTrace(ADP.NonPooledOpenTimeout())); 314throw ADP.PooledOpenTimeout(); 330throw ADP.PooledOpenTimeout(); 370if (ADP.IsEmpty(key.ConnectionString)) { 383throw ADP.InternalConnectionError(ADP.ConnectionError.ConnectionOptionsMissing); 402if ((null == poolOptions) && ADP.IsWindowsNT) {
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (5)
42ADP.CheckArgumentNull(connection, "connection"); 120throw ADP.OpenConnectionPropertySet(ADP.ConnectionString, connectionInternal.State); 263throw ADP.TransactionPresent(); 309throw ADP.NoConnectionString();
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (26)
329throw ADP.NotSupported(); 366throw ADP.InternalError(ADP.InternalErrorCode.CreateReferenceCollectionReturnedNull); 375throw ADP.MethodNotImplemented("ChangeDatabase"); 501throw ADP.InternalError(ADP.InternalErrorCode.AttemptingToConstructReferenceCollectionOnStaticObject); 555throw ADP.InternalError(ADP.InternalErrorCode.PooledObjectWithoutPool); // pooled connection does not have a pool 656throw ADP.InternalError(ADP.InternalErrorCode.SynchronousConnectReturnedPending); 666throw ADP.ConnectionAlreadyOpen(State); 670throw ADP.MethodNotImplemented("TryReplaceConnection"); 690throw ADP.InternalConnectionError(ADP.ConnectionError.GetConnectionReturnsNull); 709throw ADP.InternalError(ADP.InternalErrorCode.UnpooledObjectHasOwner); // new unpooled object has an owner 713throw ADP.InternalError(ADP.InternalErrorCode.UnpooledObjectHasWrongOwner); // unpooled object has incorrect owner 716throw ADP.InternalError(ADP.InternalErrorCode.PushingObjectSecondTime); // pushing object onto stack a second time 744throw ADP.InternalError(ADP.InternalErrorCode.PooledObjectHasOwner); // pooled connection already has an owner! 755throw ADP.InternalError(ADP.InternalErrorCode.PooledObjectInPoolMoreThanOnce); // popping object off stack with multiple pooledCount 759throw ADP.InternalError(ADP.InternalErrorCode.NonPooledObjectUsedMoreThanOnce); // popping object off stack with multiple pooledCount
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (21)
469Debug.Assert(ADP.IsWindowsNT, "Attempting to construct a connection pool on Win9x?"); 473throw ADP.InternalError(ADP.InternalErrorCode.AttemptingToPoolOnRestrictedToken); 498if(ADP.IsPlatformNT5) { 766if (ADP.IsAzureSqlServerEndpoint(poolGroupConnectionOptions.DataSource)) 798throw ADP.InternalError(ADP.InternalErrorCode.CreateObjectReturnedNull); // CreateObject succeeded, but null object 801throw ADP.InternalError(ADP.InternalErrorCode.NewObjectCannotBePooled); // CreateObject succeeded, but non-poolable object 832if (!ADP.IsCatchableExceptionType(e)) { 836ADP.TraceExceptionForCapture(e); 1101delay = (uint)Math.Max(ADP.TimerRemainingMilliseconds(next.DueTime), 0); 1122ADP.SetCurrentTransaction(next.Completion.Task.AsyncState as Transactions.Transaction); 1151next.Completion.TrySetException(ADP.ExceptionWithStackTrace(ADP.PooledOpenTimeout())); 1203CreationTimeout == 0 ? Timeout.Infinite : ADP.TimerCurrent() + ADP.TimerFromSeconds(CreationTimeout/1000), 1377throw ADP.InternalError(ADP.InternalErrorCode.UnexpectedWaitAnyResult); 1476transaction = ADP.GetCurrentTransaction(); 1588if (!ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\ProviderBase\DbConnectionPoolCounters.cs (8)
100if (ADP.IsPlatformNT5) { 102if (!ADP.IsEmpty(categoryName) && !ADP.IsEmpty(instanceName)) { 114ADP.TraceExceptionWithoutRethrow(e); 175if (!ADP.IsEmpty(categoryName)) { 176if (ADP.IsPlatformNT5) { 196if (!ADP.IsEmpty(categoryName)) { 235if (ADP.IsEmpty(instanceName)) {
fx\src\data\System\Data\ProviderBase\DbConnectionPoolGroup.cs (2)
55Debug.Assert(null == poolGroupOptions || ADP.IsWindowsNT, "should not have pooling options on Win9x"); 168Debug.Assert(ADP.IsWindowsNT, "should not be pooling on Win9x");
fx\src\data\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (4)
33static private readonly byte[] NetworkSid = (ADP.IsWindowsNT ? CreateWellKnownSid(WellKnownSidType.NetworkSid) : null); 99if (!ADP.IsWindowsNT) { 168throw ADP.InternalError(ADP.InternalErrorCode.ConvertSidToStringSidWReturnedNull);
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (27)
48ADP.CheckArgumentNull(xmlStream, "xmlStream"); 49ADP.CheckArgumentNull(serverVersion, "serverVersion"); 50ADP.CheckArgumentNull(normalizedServerVersion, "normalizedServerVersion"); 88throw ADP.DataTableDoesNotExist(collectionName); 141throw ADP.TooManyRestrictions(collectionName); 176if (!ADP.IsCatchableExceptionType(e)) { 179throw ADP.QueryFailed(collectionName,e); 221throw ADP.NoColumns(); 247throw ADP.InvalidXml(); 253throw ADP.InvalidXmlMissingColumn(DbMetaDataCollectionNames.MetaDataCollections, DbMetaDataColumnNames.CollectionName); 267if (ADP.IsEmpty(candidateCollectionName)) { 268throw ADP.InvalidXmlInvalidValue(DbMetaDataCollectionNames.MetaDataCollections,DbMetaDataColumnNames.CollectionName); 271if (ADP.CompareInsensitiveInvariant(candidateCollectionName, collectionName)){ 278throw ADP.CollectionNameIsNotUnique(collectionName); 299throw ADP.UndefinedCollection(collectionName); 302throw ADP.UnsupportedVersion(collectionName); 307throw ADP.AmbigousCollectionName(collectionName); 320throw ADP.MissingDataSourceInformationColumn(); 324throw ADP.IncorrectNumberOfDataSourceInformationRows(); 357throw ADP.MissingRestrictionColumn(); 372throw ADP.MissingRestrictionRow(); 394if (ADP.IsEmptyArray(restrictions) == false){ 400throw ADP.NotSupported(); 418if (ADP.IsEmptyArray(restrictions) == false){ 419throw ADP.TooManyRestrictions(exactCollectionName); 443throw ADP.UndefinedPopulationMechanism(populationMechanism); 484throw ADP.NotSupported();
fx\src\Data\System\Data\ProviderBase\DbParameterCollectionHelper.cs (14)
80throw ADP.ArgumentNull("values"); 94throw ADP.ParametersSourceIndex(parameterName, this, ItemType); 131throw ADP.ParametersSourceIndex(parameterName, this, ItemType); 141if (0 == ADP.SrcCompare(parameterName, parameter.ParameterName)) { 149if (0 == ADP.DstCompare(parameterName, parameter.ParameterName)) { 190throw ADP.ParametersMappingIndex(index, this); 202throw ADP.CollectionRemoveInvalidObject(ItemType, this); 246throw ADP.ParametersSourceIndex(parameterName, this, ItemType); 253throw ADP.ParameterNull("value", this, ItemType); 259throw ADP.ParametersIsNotParent(ItemType, this); 262throw ADP.ParametersIsParent(ItemType, this); 270name = ADP.Parameter + index.ToString(CultureInfo.CurrentCulture); 279throw ADP.ParameterNull("value", this, ItemType); 282throw ADP.InvalidParameterType(this, ItemType, value);
fx\src\Data\System\Data\ProviderBase\DbParameterHelper.cs (7)
35ADP.CheckArgumentNull(source, "source"); 75throw ADP.InvalidParameterDirection(value); 131throw ADP.InvalidSizeValue(value); 157return ((null != sourceColumn) ? sourceColumn : ADP.StrEmpty); 191throw ADP.InvalidDataRowVersion(value); 211ADP.CheckArgumentNull(destination, "destination"); 250if (!ADP.IsNull(value)) {
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (16)
96if (!ADP.IsEmpty(sourceTableName)) { // MDAC 66034 113throw ADP.MissingTableMappingDestination(_dataTable.TableName); 115throw ADP.InvalidMissingMappingAction(mappingAction); 123if (!ADP.IsEmpty(sourceTableName)) { // MDAC 66034 137throw ADP.InvalidSchemaType(schemaType); 360throw ADP.InvalidLoadOption(_loadOption); 436ADP.BuildSchemaTableInfoTableNames(fieldNames); 500throw ADP.MissingDataReaderFieldType(i); 570throw ADP.FillChapterAutoIncrement(); 632if (ADP.IsCatchableOrSecurityExceptionType(e)) { 686throw ADP.MissingDataReaderFieldType(sortedIndex); 775throw ADP.FillChapterAutoIncrement(); 780if ((basetable != commonBaseTable) && (!ADP.IsEmpty(basetable))) { 950if (!commonFromMultiTable && !ADP.IsEmpty(commonBaseTable) && ADP.IsEmpty(_dataTable.TableName)) { 971if (ADP.IsCatchableOrSecurityExceptionType(e)) {
fx\src\data\System\Data\ProviderBase\TimeoutTimer.cs (6)
70timeout._timerExpire = checked(ADP.TimerCurrent() + timeout._originalTimerTicks); 99_originalTimerTicks = ADP.TimerFromSeconds(seconds); 100_timerExpire = checked(ADP.TimerCurrent() + _originalTimerTicks); 113_timerExpire = checked(ADP.TimerCurrent() + _originalTimerTicks); 130return !IsInfinite && ADP.TimerHasExpired(_timerExpire); 172milliseconds = ADP.TimerRemainingMilliseconds(_timerExpire);
fx\src\data\System\Data\RecordManager.cs (1)
221if (Common.ADP.IsCatchableOrSecurityExceptionType(e)) {
fx\src\data\System\Data\RelationshipConverter.cs (2)
54if (System.Data.Common.ADP.IsEmpty(parentTable.Namespace) && System.Data.Common.ADP.IsEmpty(childTable.Namespace)) {
fx\src\data\System\Data\Select.cs (1)
523if (!ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\SimpleType.cs (8)
142enumeration = !Common.ADP.IsEmpty(enumeration) ? enumeration + " " + facet.Value : facet.Value; 167Common.ADP.IsEmpty(this.name) && 171Common.ADP.IsEmpty(this.pattern) && 172Common.ADP.IsEmpty(this.maxExclusive) && 173Common.ADP.IsEmpty(this.maxInclusive) && 174Common.ADP.IsEmpty(this.minExclusive) && 175Common.ADP.IsEmpty(this.minInclusive) && 176Common.ADP.IsEmpty(this.enumeration)
fx\src\data\System\Data\Sql\invalidudtexception.cs (1)
43ADP.TraceExceptionAsReturnValue(e);
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (6)
29private const int timeoutSeconds = ADP.DefaultCommandTimeout; 51IntPtr handle = ADP.PtrZero; 61if (ADP.PtrZero != handle) { 75if (ADP.PtrZero != handle) { 83throw ADP.ArgumentOutOfRange("readLength"); 139if (!ADP.IsEmpty(instanceName)) { // SQL BU DT 20006584: only append instanceName if present.
fx\src\data\System\Data\Sql\SqlGenericUtil.cs (2)
28return ADP.Argument(Res.GetString(Res.Sql_NullCommandText)); 31return ADP.Argument(Res.GetString(Res.Sql_MismatchedMetaDataDirectionArrayLengths));
fx\src\data\System\Data\Sql\SqlMetaData.cs (35)
467throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 472throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 477throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 482throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 488throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 493throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 497throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 502throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 536throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 541throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 546throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 551throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 557throw ADP.Argument(Res.GetString(Res.ADP_InvalidDataLength2, maxLength.ToString(CultureInfo.InvariantCulture)), "maxLength"); 571throw ADP.InvalidEnumerationValue(typeof(SqlCompareOptions), (int)compareOptions); 640throw ADP.ArgumentNull("userDefinedType"); 667throw ADP.ArgumentNull("objectName"); 685throw ADP.ArgumentNull("name"); 1055case TypeCode.Empty: throw ADP.InvalidDataType(TypeCode.Empty); 1059case TypeCode.SByte: throw ADP.InvalidDataType(TypeCode.SByte); 1062case TypeCode.UInt16: throw ADP.InvalidDataType(TypeCode.UInt16); 1063case TypeCode.UInt32: throw ADP.InvalidDataType(TypeCode.UInt32); 1064case TypeCode.UInt64: throw ADP.InvalidDataType(TypeCode.UInt64); 1074throw ADP.InvalidDataType(TypeCode.UInt64); 1114throw ADP.UnknownDataType(dataType); 1119default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType)); 1127throw ADP.ArgumentNull("value"); 1136case TypeCode.DBNull: throw ADP.InvalidDataType(TypeCode.DBNull); 1145case TypeCode.Empty: throw ADP.InvalidDataType(TypeCode.Empty); 1149case TypeCode.SByte: throw ADP.InvalidDataType(TypeCode.SByte); 1162case TypeCode.UInt16: throw ADP.InvalidDataType(TypeCode.UInt16); 1163case TypeCode.UInt32: throw ADP.InvalidDataType(TypeCode.UInt32); 1164case TypeCode.UInt64: throw ADP.InvalidDataType(TypeCode.UInt64); 1301throw ADP.UnknownDataType(dataType); 1305default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType)); 1442throw ADP.InvalidMetaDataValue();
fx\src\data\System\Data\Sql\SqlNotificationRequest.cs (6)
37throw ADP.ArgumentOutOfRange(String.Empty, ADP.ParameterService); 49throw ADP.ArgumentOutOfRange(String.Empty, ADP.ParameterTimeout); 61throw ADP.ArgumentOutOfRange(String.Empty, ADP.ParameterUserData);
fx\src\data\System\Data\Sql\sqlser.cs (1)
135throw ADP.InvalidUserDefinedTypeSerializationFormat(k);
fx\src\data\System\Data\Sql\SqlUserDefinedAggregateAttribute.cs (3)
41throw ADP.NotSupportedUserDefinedTypeSerializationFormat((Microsoft.SqlServer.Server.Format)format, "format"); 47throw ADP.InvalidUserDefinedTypeSerializationFormat((Microsoft.SqlServer.Server.Format)format); 61throw ADP.ArgumentOutOfRange(Res.GetString(Res.SQLUDT_MaxByteSizeValue), "MaxByteSize", value);
fx\src\data\System\Data\Sql\SqlUserDefinedTypeAttribute.cs (3)
50throw ADP.NotSupportedUserDefinedTypeSerializationFormat((Microsoft.SqlServer.Server.Format)format, "format"); 56throw ADP.InvalidUserDefinedTypeSerializationFormat((Microsoft.SqlServer.Server.Format)format); 69throw ADP.ArgumentOutOfRange("MaxByteSize");
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (27)
283throw ADP.ArgumentNull("connection"); 304throw ADP.ArgumentNull("connectionString"); 325throw ADP.ArgumentOutOfRange("BatchSize"); 363throw ADP.ArgumentNull("DestinationTableName"); 366throw ADP.ArgumentOutOfRange("DestinationTableName"); 381throw ADP.ArgumentOutOfRange("NotifyAfter"); 436if (ADP.IsEmpty(parts[MultipartIdentifier.TableIndex])) { 459if (!ADP.IsEmpty(TableName)) { 467if (!ADP.IsEmpty(SchemaName)) { 475if (isTempTable && ADP.IsEmpty(CatalogName)) { 484if (!ADP.IsEmpty(CatalogName)) { 814if(!ADP.IsCatchableExceptionType(e)) { 817ADP.TraceExceptionWithoutRethrow(e); 867ADP.IsNullOrSqlType(columnValue, out isNull, out isSqlType); 928ADP.IsNullOrSqlType(columnValue, out isNull, out isSqlType); 940ADP.IsNullOrSqlType(currentRowValue, out isNull, out isSqlType); 992throw ADP.NotSupported(); 1057throw ADP.NotSupported(); 1164throw ADP.ConnectionRequired(method); 1181throw ADP.TransactionConnectionMismatch(); 1258if(ADP.IsEmpty(name)) return null; 1367throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, ADP.ParameterValueOutOfRange(sqlValue)); 1455if(!ADP.IsCatchableExceptionType(e)) { 2008throw ADP.ClosedConnectionError(); 2085exception = ADP.OpenConnectionRequired("CheckAndRaiseNotification", _connection.State); 2090if (!ADP.IsCatchableExceptionType(e)) { 2113throw ADP.OpenConnectionRequired(SQL.WriteToServer, _connection.State);
fx\src\data\System\Data\SqlClient\SqlBulkCopyColumnMapping.cs (2)
62throw ADP.IndexOutOfRange(value); 90throw ADP.IndexOutOfRange(value);
fx\src\data\System\Data\SqlClient\SqlBulkCopyColumnMappingCollection.cs (3)
56Debug.Assert(ADP.IsEmpty(bulkCopyColumnMapping.SourceColumn) || bulkCopyColumnMapping._internalSourceColumnOrdinal == -1, "BulkLoadAmbigousSourceColumn"); 57if (((ADP.IsEmpty(bulkCopyColumnMapping.SourceColumn)) && (bulkCopyColumnMapping.SourceOrdinal == -1)) 58|| ((ADP.IsEmpty(bulkCopyColumnMapping.DestinationColumn))&&(bulkCopyColumnMapping.DestinationOrdinal == -1))) {
fx\src\data\System\Data\SqlClient\SqlClientPermission.cs (2)
40base.Add(ADP.StrEmpty, ADP.StrEmpty, KeyRestrictionBehavior.AllowOnly);
fx\src\data\System\Data\SqlClient\SqlClientWrapperSmiStreamChars.cs (2)
75throw ADP.ArgumentOutOfRange("Position"); 95throw ADP.ArgumentOutOfRange("value");
fx\src\data\System\Data\SqlClient\SqlCommand.cs (97)
51private int _commandTimeout = ADP.DefaultCommandTimeout; 217throw ADP.ClosedConnectionError(); 637return ((null != value) ? value : ADP.StrEmpty); 645if (0 != ADP.SrcCompare(_commandText, value)) { 675throw ADP.InvalidCommandTimeout(value); 685if (ADP.DefaultCommandTimeout != _commandTimeout) { 687_commandTimeout = ADP.DefaultCommandTimeout; 692return (ADP.DefaultCommandTimeout != _commandTimeout); 718throw ADP.InvalidCommandType(value); 784throw ADP.InvalidUpdateRowSource(value); 812if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 816ADP.TraceExceptionWithoutRethrow(e); 862ValidateCommand(ADP.Prepare, false /*not async*/); 915processFinallyBlock = ADP.IsCatchableExceptionType(e); 1142ds = RunExecuteReader(0, RunBehavior.ReturnImmediately, true, ADP.ExecuteScalar); 1198InternalExecuteNonQuery(null, ADP.ExecuteNonQuery, false, CommandTimeout, out usedCache); 1228InternalExecuteNonQuery(null, ADP.ExecuteNonQuery, true, CommandTimeout, out usedCache); 1275Task execNQ = InternalExecuteNonQuery(localCompletion, ADP.BeginExecuteNonQuery, false, timeout, out usedCache, asyncWrite, inRetry: inRetry); 1284if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 1296if (!TriggerInternalEndAndRetryIfNecessary(behavior, stateObject, timeout, ADP.EndExecuteNonQuery, usedCache, inRetry, asyncWrite, globalCompletion, localCompletion, InternalEndExecuteNonQuery, BeginExecuteNonQueryInternal)) { 1328cachedAsyncState.SetActiveConnectionAndResult(completion, ADP.EndExecuteNonQuery, _activeConnection); 1363throw ADP.ArgumentNull("asyncResult"); 1385throw ADP.ClosedConnectionError(); 1392throw ADP.MethodCalledTwice(endMethod); 1395throw ADP.MismatchedAsyncResult(cachedAsyncState.EndMethodName, endMethod); 1399throw ADP.ClosedConnectionError(); 1472int result = (int)InternalEndExecuteNonQuery(asyncResult, ADP.EndExecuteNonQuery, isInternal: false); 1490if (ADP.IsCatchableExceptionType(e)) { 1567processFinallyBlock = ADP.IsCatchableExceptionType(e); 1711ds = RunExecuteReader(CommandBehavior.SequentialAccess, RunBehavior.ReturnImmediately, true, ADP.ExecuteXmlReader); 1767RunExecuteReader(behavior, RunBehavior.ReturnImmediately, true, ADP.BeginExecuteXmlReader, localCompletion, timeout, out writeTask, out usedCache, asyncWrite, inRetry); 1770if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 1789if (!TriggerInternalEndAndRetryIfNecessary(behavior, stateObject, timeout, ADP.EndExecuteXmlReader, usedCache, inRetry, asyncWrite, globalCompletion, localCompletion, InternalEndExecuteReader, BeginExecuteXmlReaderInternal)) { 1821cachedAsyncState.SetActiveConnectionAndResult(completion, ADP.EndExecuteXmlReader, _activeConnection); 1895XmlReader result = CompleteXmlReader(InternalEndExecuteReader(asyncResult, ADP.EndExecuteXmlReader, isInternal: false)); 1913if (ADP.IsCatchableExceptionType(e)) { 1937if (ADP.IsCatchableExceptionType(e)) { 1962return ExecuteReader(behavior, ADP.ExecuteReader); 1972return ExecuteReader(CommandBehavior.Default, ADP.ExecuteReader); 1985return ExecuteReader(behavior, ADP.ExecuteReader); 2103SqlDataReader result = InternalEndExecuteReader(asyncResult, ADP.EndExecuteReader, isInternal: false); 2122if (ADP.IsCatchableExceptionType(e)) { 2160RunExecuteReader(behavior, RunBehavior.ReturnImmediately, true, ADP.BeginExecuteReader, localCompletion, timeout, out writeTask, out usedCache, asyncWrite, inRetry); 2163if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 2182if (!TriggerInternalEndAndRetryIfNecessary(behavior, stateObject, timeout, ADP.EndExecuteReader, usedCache, inRetry, asyncWrite, globalCompletion, localCompletion, InternalEndExecuteReader, BeginExecuteReaderInternal)) { 2209long firstAttemptStart = ADP.TimerCurrent(); 2233if (ADP.IsCatchableExceptionType(e)) { 2318cachedAsyncState.SetActiveConnectionAndResult(completion, ADP.EndExecuteReader, _activeConnection); 2715throw ADP.DeriveParametersNotSupported(this); 2720throw ADP.DeriveParametersNotSupported(this); 2722throw ADP.InvalidCommandType(this.CommandType); 2726ValidateCommand(ADP.DeriveParameters, false /*not async*/); 2730if (null == parsedSProc[3] || ADP.IsEmpty(parsedSProc[3])) 2732throw ADP.NoStoredProcedureExists(this.CommandText); 2744if (!ADP.IsEmpty(parsedSProc[0])) { 2750if (ADP.IsEmpty(parsedSProc[1])) { 2804if (!ADP.IsEmpty(parsedSProc[2])) { // SchemaName is 3rd element in parsed array 2853ADP.IsNull(r[colNames[(int)ProcParamsColIndex.TypeName]]) ? 2854ADP.StrEmpty : 2918p.XmlSchemaCollectionDatabase = ADP.IsNull(value) ? String.Empty : (string) value; 2921p.XmlSchemaCollectionOwningSchema = ADP.IsNull(value) ? String.Empty : (string) value; 2924p.XmlSchemaCollectionName = ADP.IsNull(value) ? String.Empty : (string) value; 2938processFinallyBlock = ADP.IsCatchableExceptionType(e); 2953throw ADP.NoStoredProcedureExists(this.CommandText); 2993if (!ADP.IsEmpty(notifyContext)) { 3066long reconnectionStart = ADP.TimerCurrent(); 3125processFinallyBlock = ADP.IsCatchableExceptionType(e); 3187processFinallyBlock = ADP.IsCatchableExceptionType(e); 3412processFinallyBlockAsync = ADP.IsCatchableExceptionType(e); 3484processFinallyBlockAsync = ADP.IsCatchableExceptionType(e); 3513processFinallyBlock = ADP.IsCatchableExceptionType(e); 3551if (ADP.IsCatchableExceptionType(e)) { 3783throw ADP.ClosedConnectionError(); 4164long firstAttemptStart = ADP.TimerCurrent(); 4281long parameterEncryptionStart = ADP.TimerCurrent(); 4352long reconnectionStart = ADP.TimerCurrent(); 4561processFinallyBlock = ADP.IsCatchableExceptionType (e); 4638if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 4664processFinallyBlock = ADP.IsCatchableExceptionType(e); 4704if (ADP.IsCatchableExceptionType(e)) { 4756if (ADP.IsCatchableExceptionType(e)) { 4794throw ADP.ClosedConnectionError(); 4804throw ADP.ConnectionRequired(method); 4822throw ADP.OpenConnectionRequired(method, ConnectionState.Closed); 4825throw ADP.OpenConnectionRequired(method, ConnectionState.Broken); 4829throw ADP.OpenConnectionRequired(method, ConnectionState.Closed); 4832throw ADP.OpenConnectionRequired(method, ConnectionState.Broken); 4885throw ADP.TransactionRequired(method); 4891throw ADP.TransactionConnectionMismatch(); 4893if (ADP.IsEmpty(this.CommandText)) 4894throw ADP.CommandTextRequired(method); 4938throw ADP.ClosedConnectionError(); 5174throw ADP.ClosedConnectionError(); 5771if(ADP.IsEmpty(fullTypeName)) 5778if (ADP.IsEmpty(typeName)) { 5888bld.Append(ADP.BuildQuotedString("[", "]", strings[i])); 6226throw ADP.VersionDoesNotSupportDataType(mt.TypeName);
fx\src\data\System\Data\SqlClient\SqlCommandBuilder.cs (11)
48throw ADP.SingleValuedProperty("CatalogLocation", "Start"); 65throw ADP.SingleValuedProperty("CatalogSeparator", "."); 96throw ADP.DoubleValuedProperty("QuotePrefix", "[", "\""); 113throw ADP.DoubleValuedProperty("QuoteSuffix", "]", "\""); 130throw ADP.SingleValuedProperty("SchemaSeparator","."); 202throw ADP.InvalidPrefixSuffix(); 210throw ADP.ArgumentNull("command"); 301ADP.CheckArgumentNull(unquotedIdentifier, "unquotedIdentifier"); 305return ADP.BuildQuotedString(quotePrefixLocal,quoteSuffixLocal,unquotedIdentifier);; 320ADP.CheckArgumentNull(quotedIdentifier, "quotedIdentifier"); 326ADP.RemoveStringQuotes(quotePrefixLocal, quoteSuffixLocal, quotedIdentifier, out unquotedIdentifier);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (11)
58throw ADP.ObjectDisposed(this); 74throw ADP.ObjectDisposed(this); 114ADP.CheckArgumentNull(command, "command"); 118if (ADP.IsEmpty(cmdText)) { 119throw ADP.CommandTextRequired(ADP.Append); 132throw ADP.InvalidCommandType(commandType); 149throw ADP.BadParameterName(p.ParameterName); 259ValidateCommandBehavior(ADP.ExecuteNonQuery, CommandBehavior.Default); 291ADP.ValidateCommandBehavior(behavior); 292throw ADP.NotSupportedCommandBehavior(behavior & ~(CommandBehavior.SequentialAccess|CommandBehavior.CloseConnection), method);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (72)
182if (key.StartsWith(ADP.ColumnEncryptionSystemProviderNamePrefix, StringComparison.InvariantCultureIgnoreCase)) 184throw SQL.InvalidCustomKeyStoreProviderName(key, ADP.ColumnEncryptionSystemProviderNamePrefix); 315throw ADP.InvalidMixedArgumentOfSecureAndClearCredential(); 320throw ADP.InvalidMixedArgumentOfSecureCredentialAndIntegratedSecurity(); 325throw ADP.InvalidMixedArgumentOfSecureCredentialAndContextConnection(); 362if (_connectRetryCount == 1 && ADP.IsAzureSqlServerEndpoint(connString.DataSource)) 405ADP.TimerCurrent(out _statistics._openTimestamp); 422ADP.TimerCurrent(out _statistics._closeTimestamp); 492result = (!ADP.IsEmpty(opt.UserID) || !ADP.IsEmpty(opt.Password)); 556throw ADP.OpenConnectionPropertySet("AccessToken", InnerConnection.State); 800throw ADP.OpenConnectionPropertySet("Credential", InnerConnection.State); 815throw ADP.InvalidMixedUsageOfCredentialAndAccessToken(); 835throw ADP.InvalidMixedUsageOfSecureAndClearCredential(); 840throw ADP.InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity(); 845throw ADP.InvalidMixedArgumentOfSecureCredentialAndContextConnection(); 855throw ADP.InvalidMixedUsageOfAccessTokenAndUserIDPassword(); 859throw ADP.InvalidMixedUsageOfAccessTokenAndIntegratedSecurity(); 863throw ADP.InvalidMixedUsageOfAccessTokenAndContextConnection(); 867throw ADP.InvalidMixedUsageOfAccessTokenAndAuthentication(); 872throw ADP.InvalidMixedUsageOfAccessTokenAndCredential(); 958string xactName = ADP.IsEmpty(transactionName)? "None" : transactionName; 1040ADP.CheckArgumentNull(connection, "connection"); 1105ADP.TimerCurrent(out _statistics._closeTimestamp); 1199throw ADP.InternalError(ADP.InternalErrorCode.SynchronousConnectReturnedPending); 1225commandTimeoutExpiration = ADP.TimerCurrent() + ADP.TimerFromSeconds(timeout); 1260if (timeout > 0 && ADP.TimerRemaining(commandTimeoutExpiration) < ADP.TimerFromSeconds(ConnectRetryInterval)) { 1403System.Transactions.Transaction transaction = ADP.GetCurrentTransaction(); 1414result.SetException(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 1500_result.SetException(ADP.ExceptionWithStackTrace(ADP.InternalError(ADP.InternalErrorCode.CompletedConnectReturnedPending))); 1593ADP.TimerCurrent(out _statistics._openTimestamp); 1719if (!ADP.IsEmpty(name)) { 1793ADP.TraceExceptionWithoutRethrow(e); 1807throw ADP.ClosedConnectionError(); 1816throw ADP.OpenConnectionRequired(method, innerConnection.State); 1824throw ADP.ClosedConnectionError(); 1832throw ADP.OpenConnectionRequired(method, InnerConnection.State); 1854if (!ADP.IsCatchableOrSecurityExceptionType(e)) { 1858ADP.TraceExceptionWithoutRethrow(e); 1881if (ADP.IsPlatformNT5) { 1892if (ADP.PtrZero != hFileMap) { 1894if (ADP.PtrZero != pMemMap) { 2034if (ADP.IsEmpty(connectionString)) { 2037if (ADP.IsEmpty(newPassword)) { 2041throw ADP.InvalidArgumentLength("newPassword", TdsEnums.MAXLEN_NEWPASSWORD); 2051if (! ADP.IsEmpty(connectionOptions.AttachDBFilename)) { 2073if (ADP.IsEmpty(connectionString)) { 2087throw ADP.MustBeReadOnly("newSecurePassword"); 2091throw ADP.InvalidArgumentLength("newSecurePassword", TdsEnums.MAXLEN_NEWPASSWORD); 2099if (!ADP.IsEmpty(connectionOptions.UserID) || !ADP.IsEmpty(connectionOptions.Password)) { 2100throw ADP.InvalidMixedArgumentOfSecureAndClearCredential(); 2107if (! ADP.IsEmpty(connectionOptions.AttachDBFilename)) { 2150Debug.Assert(ADP.PtrZero != sdc.pMemMap, "SQL Debug: invalid null value for pMemMap!"); 2172ADP.TimerCurrent(out _statistics._openTimestamp); 2194ADP.TimerCurrent(out _statistics._closeTimestamp); 2219if (throwOnError || !ADP.IsCatchableExceptionType(e)) { 2231Debug.Assert(!ADP.IsEmpty(metaData.udtAssemblyQualifiedName), "Unexpected state on GetUDTInfo"); 2244if (returnDBNull && ADP.IsNull(value)) { 2251if (ADP.IsNull(value)) { 2465if (ADP.IsPlatformNT5) { 2484ADP.InvalidPtr/*INVALID_HANDLE_VALUE*/, 2515Marshal.Copy(rgbMachineName, 0, ADP.IntPtrOffset(pMemMap, offset), rgbMachineName.Length); 2517Marshal.Copy(rgbSDIDLLName, 0, ADP.IntPtrOffset(pMemMap, offset), rgbSDIDLLName.Length); 2522Marshal.Copy(rgbData, 0, ADP.IntPtrOffset(pMemMap, offset), (int)cbData); 2569internal IntPtr pMemMap = ADP.PtrZero; 2570internal IntPtr hMemMap = ADP.PtrZero;
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (3)
133Debug.Assert(!ADP.IsEmpty(connectionString), "empty connectionString"); 200XMLStream = ADP.GetXmlStreamFromValues(values, _metaDataXml); 228throw ADP.NoConnectionString();
fx\src\data\System\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs (1)
28if (ADP.IsEmpty(_failoverPartner)) {
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (32)
34internal const int Connect_Timeout = ADP.DefaultConnectionTimeout; 260_enlist = ConvertValueToBoolean(KEY.Enlist, ADP.IsWindowsNT); 322Object obj = ADP.LocalMachineRegistryValue(folder, value); 330throw ADP.InvalidConnectionOptionValue(KEY.Load_Balance_Timeout); 334throw ADP.InvalidConnectionOptionValue(KEY.Connect_Timeout); 338throw ADP.InvalidConnectionOptionValue(KEY.Max_Pool_Size); 342throw ADP.InvalidConnectionOptionValue(KEY.Min_Pool_Size); 345throw ADP.InvalidMinMaxPoolSizeValues(); 356throw ADP.InvalidConnectionOptionValue(KEY.Network_Library); 383throw ADP.MissingConnectionOptionValue(KEY.FailoverPartner, KEY.Initial_Catalog); 392throw ADP.InvalidConnectionOptionValue(KEY.AttachDBFilename); 406throw ADP.InvalidConnectionOptionValue(KEY.AttachDBFilename); 414if (true == _userInstance && !ADP.IsEmpty(_failoverPartner)) { 418if (ADP.IsEmpty(typeSystemVersionString)) { 442throw ADP.InvalidConnectionOptionValue(KEY.Type_System_Version); 445if (ADP.IsEmpty(transactionBindingString)) { 456throw ADP.InvalidConnectionOptionValue(KEY.TransactionBinding); 460throw ADP.InvalidConnectRetryCountValue(); 464throw ADP.InvalidConnectRetryIntervalValue(); 712result = ADP.MachineName(); 757throw ADP.InvalidConnectionOptionValueLength(key, limit); 762if (ADP.IsEmpty(host)) { 770string name = ADP.GetComputerNameDnsFullyQualified(); // i.e, machine.location.corp.company.com 775throw ADP.InvalidConnectionOptionValue(KEY.AttachDBFilename); 794throw ADP.InvalidConnectionOptionValue(KEY.ApplicationIntent, e); 797throw ADP.InvalidConnectionOptionValue(KEY.ApplicationIntent, e); 816throw ADP.InvalidConnectionOptionValue(KEY.PoolBlockingPeriod, e); 820throw ADP.InvalidConnectionOptionValue(KEY.PoolBlockingPeriod, e); 836throw ADP.InvalidConnectionOptionValue(KEY.Authentication, e); 839throw ADP.InvalidConnectionOptionValue(KEY.Authentication, e); 859throw ADP.InvalidConnectionOptionValue(KEY.ColumnEncryptionSetting, e); 862throw ADP.InvalidConnectionOptionValue(KEY.ColumnEncryptionSetting, e);
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (23)
249if (!ADP.IsEmpty(connectionString)) { 310throw ADP.KeywordNotSupported(keyword); 327throw ADP.InvalidEnumerationValue(typeof(ApplicationIntent), (int)value); 384throw ADP.InvalidEnumerationValue(typeof(PoolBlockingPeriod), (int)value); 426throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.ConnectTimeout); 478throw ADP.InvalidEnumerationValue(typeof(SqlConnectionColumnEncryptionSetting), (int)value); 568throw ADP.InvalidEnumerationValue(typeof(SqlAuthenticationMethod), (int)value); 584throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.LoadBalanceTimeout); 599throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.MaxPoolSize); 614throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.ConnectRetryCount); 629throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.ConnectRetryInterval); 646throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.MinPoolSize); 739throw ADP.InvalidConnectionOptionValue(DbConnectionStringKeywords.NetworkLibrary); 903ADP.CheckArgumentNull(keyword, "keyword"); 993throw ADP.KeywordNotSupported(_validKeywords[(int)index]); 998ADP.CheckArgumentNull(keyword, "keyword"); 1003throw ADP.KeywordNotSupported(keyword); 1034ADP.CheckArgumentNull(keyword, "keyword"); 1167throw ADP.KeywordNotSupported(_validKeywords[(int)index]); 1178ADP.CheckArgumentNull(value, keyword); 1200ADP.CheckArgumentNull(keyword, "keyword"); 1418ADP.TraceExceptionWithoutRethrow(e); 1444throw ADP.ArgumentNull("destinationType");
fx\src\data\System\Data\SqlClient\SqlCredential.cs (5)
35throw ADP.ArgumentNull("userId"); 40throw ADP.InvalidArgumentLength("userId", TdsEnums.MAXLEN_USERNAME); 45throw ADP.ArgumentNull("password"); 50throw ADP.InvalidArgumentLength("password", TdsEnums.MAXLEN_PASSWORD); 55throw ADP.MustBeReadOnly("password");
fx\src\data\System\Data\SqlClient\SqlDataAdapter.cs (2)
108throw ADP.ArgumentOutOfRange("UpdateBatchSize"); 156SqlRowUpdatingEventHandler d = (SqlRowUpdatingEventHandler) ADP.FindBuilder(handler);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (142)
150throw ADP.DataReaderClosed("Depth"); 161throw ADP.DataReaderClosed("FieldCount"); 164throw ADP.AsyncOperationPending(); 178throw ADP.DataReaderClosed("HasRows"); 181throw ADP.AsyncOperationPending(); 217throw ADP.DataReaderClosed("MetaData"); 313length /= ADP.CharSize; 385throw ADP.DataReaderClosed("VisibleFieldCount"); 655if (!ADP.IsEmpty(col.serverName)) { 658if (!ADP.IsEmpty(col.catalogName)) { 661if (!ADP.IsEmpty(col.schemaName)) { 664if (!ADP.IsEmpty(col.tableName)) { 667if (!ADP.IsEmpty(col.baseColumn)) { 670else if (!ADP.IsEmpty(col.column)) { 1102networkPacketTaskSource.TrySetException(ADP.ClosedConnectionError()); 1531throw ADP.AsyncOperationPending(); 1601throw ADP.NegativeParameter("dataIndex"); 1604throw ADP.NonSeqByteAccess(dataIndex, _columnDataBytesRead, ADP.GetBytes); 1617throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1621throw ADP.InvalidBufferSizeOrIndex(length, bufferIndex); 1624throw ADP.InvalidDataLength(length); 1654throw ADP.NegativeParameter("dataIndex"); 1657throw ADP.InvalidSourceBufferIndex(cbytes, dataIndex, "dataIndex"); 1708if (!ADP.IsCatchableExceptionType(e)) { 1714throw ADP.InvalidDataLength(length); 1718throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1722throw ADP.InvalidBufferSizeOrIndex(cbytes, bufferIndex); 1761throw ADP.AsyncOperationPending(); 1932throw ADP.NotSupported(); 1941throw ADP.AsyncOperationPending(); 1970throw ADP.InvalidDataLength(length); 1979throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1984throw ADP.InvalidBufferSizeOrIndex(length, bufferIndex); 1994if (ADP.IsCatchableExceptionType(ex)) { 2014throw ADP.NonSeqByteAccess(dataIndex, _columnDataCharsRead, ADP.GetChars); 2031throw ADP.InvalidSourceBufferIndex(cchars, dataIndex, "dataIndex"); 2057if (!ADP.IsCatchableExceptionType(e)) { 2063throw ADP.InvalidDataLength(length); 2067throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 2071throw ADP.InvalidBufferSizeOrIndex(cchars, bufferIndex); 2119throw ADP.NonSeqByteAccess(dataIndex, _columnDataCharsRead, ADP.GetChars); 2227throw ADP.NotSupported(); 2416throw ADP.AsyncOperationPending(); 2450throw ADP.DataReaderClosed("GetSqlValueFromSqlBufferInternal"); 2475throw ADP.ArgumentNull("values"); 2569throw ADP.AsyncOperationPending(); 2610throw ADP.DataReaderClosed("GetValueFromSqlBufferInternal"); 2622throw ADP.AsyncOperationPending(); 2680throw ADP.ArgumentNull("values"); 2808throw ADP.ClosedConnectionError(); 2883throw ADP.ClosedConnectionError(); 2979throw ADP.DataReaderClosed("NextResult"); 3252throw ADP.DataReaderClosed("Read"); 3307throw ADP.AsyncOperationPending(); 3849throw ADP.AsyncOperationPending(); 3858throw ADP.AsyncOperationPending(); 3864throw ADP.IndexOutOfRange(); 3870throw ADP.AsyncOperationPending(); 3880throw ADP.DataReaderClosed(methodName ?? "CheckHeaderIsReady"); 3883throw ADP.AsyncOperationPending(); 3890throw ADP.IndexOutOfRange(); 3894throw ADP.NonSequentialColumnAccess(columnIndex, Math.Max(_sharedState._nextColumnHeaderToRead - 1, _lastColumnWithDataChunkRead)); 3900throw ADP.DataReaderClosed(methodName ?? "CheckDataIsReady"); 3903throw ADP.AsyncOperationPending(); 3910throw ADP.IndexOutOfRange(); 3916throw ADP.NonSequentialColumnAccess(columnIndex, Math.Max(_sharedState._nextColumnDataToRead, _lastColumnWithDataChunkRead + 1)); 3940source.SetException(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("NextResultAsync"))); 3955source.SetException(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 3979return more ? ADP.TrueTask : ADP.FalseTask; 4001source.SetException(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("GetBytesAsync"))); 4007source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4023source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4054return ADP.CreatedTaskWithCancellation<int>(); 4058return ADP.CreatedTaskWithException<int>(ADP.ExceptionWithStackTrace(ADP.IO(SQLMessage.Timeout()))); 4115source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4141return ADP.CreatedTaskWithCancellation<int>(); 4145return ADP.CreatedTaskWithException<int>(ADP.ExceptionWithStackTrace(ADP.IO(SQLMessage.Timeout()))); 4191return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("ReadAsync"))); 4196return ADP.CreatedTaskWithCancellation<bool>(); 4201return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 4233return ADP.TrueTask; 4240return ADP.TrueTask; 4245return ADP.FalseTask; 4257if (!ADP.IsCatchableExceptionType(ex)) { 4260return ADP.CreatedTaskWithException<bool>(ex); 4266source.SetException(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 4296return more ? ADP.TrueTask : ADP.FalseTask; 4309return ADP.TrueTask; 4330if (!ADP.IsCatchableExceptionType(ex)) { 4333return ADP.CreatedTaskWithException<bool>(ex); 4340return data[i].IsNull ? ADP.TrueTask : ADP.FalseTask; 4344return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("IsDBNullAsync"))); 4350return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4355return ADP.CreatedTaskWithCancellation<bool>(); 4366return _data[i].IsNull ? ADP.TrueTask : ADP.FalseTask; 4376if (!ADP.IsCatchableExceptionType(ex)) { 4379return ADP.CreatedTaskWithException<bool>(ex); 4386source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4414return _data[i].IsNull ? ADP.TrueTask : ADP.FalseTask; 4440return ADP.CreatedTaskWithException<T>(ADP.ExceptionWithStackTrace(ADP.DataReaderClosed("GetFieldValueAsync"))); 4444if (!ADP.IsCatchableExceptionType(ex)) { 4447return ADP.CreatedTaskWithException<T>(ex); 4452return ADP.CreatedTaskWithException<T>(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4457return ADP.CreatedTaskWithCancellation<T>(); 4477if (!ADP.IsCatchableExceptionType(ex)) { 4480return ADP.CreatedTaskWithException<T>(ex); 4487source.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 4571source.TrySetException(ADP.ExceptionWithStackTrace(ADP.ClosedConnectionError())); 4614source.SetException(ADP.ExceptionWithStackTrace(ADP.ClosedConnectionError())); 4627task = ADP.CreatedTaskWithException<T>(ex);
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (23)
141return ADP.CreatedTaskWithException<T>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 159throw ADP.ArgumentNull("values"); 201return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 226throw ADP.NotSupported(); 334processFinallyBlock = ADP.IsCatchableExceptionType(e); 362return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 414return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 672if ( !ADP.IsEmpty( colMetaData.ColumnName ) ) { 675else if (!ADP.IsEmpty( colMetaData.Name)) { 680if ( !ADP.IsEmpty(colMetaData.TableName ) ) { 684if (!ADP.IsEmpty(colMetaData.SchemaName)) { 688if (!ADP.IsEmpty(colMetaData.CatalogName)) { 692if (!ADP.IsEmpty(colMetaData.ServerName)) { 833throw ADP.ArgumentNull("values"); 862throw ADP.NonSequentialColumnAccess(ordinal, ordinal + 1); 880throw ADP.NonSequentialColumnAccess(ordinal, ordinal + 1); 895throw ADP.InvalidCast(); 901throw ADP.NonSequentialColumnAccess(ordinal, ordinal + 1); 1036throw ADP.DataReaderClosed( operationName );
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (11)
106throw ADP.InternalError(ADP.InternalErrorCode.UnknownTransactionFailure); 187ADP.TraceExceptionWithoutRethrow(e); 197ADP.TraceExceptionWithoutRethrow(e); 261ADP.TraceExceptionWithoutRethrow(e); 281ADP.TraceExceptionWithoutRethrow(e); 358ADP.TraceExceptionWithoutRethrow(e); 367ADP.TraceExceptionWithoutRethrow(e); 446throw ADP.ObjectDisposed(this); 468throw ADP.InternalError(ADP.InternalErrorCode.UnpooledObjectHasWrongOwner); //
fx\src\data\System\Data\SqlClient\SqlDependency.cs (26)
452throw ADP.ArgumentNull("command"); 505throw ADP.InternalError(ADP.InternalErrorCode.SqlDependencyObtainProcessDispatcherFailureObjectHandle); 510throw ADP.InternalError(ADP.InternalErrorCode.SqlDependencyProcessDispatcherFailureCreateInstance); 515throw ADP.InternalError(ADP.InternalErrorCode.SqlDependencyProcessDispatcherFailureAppDomain); 575if (ADP.IsEmpty(connectionString)) { 577throw ADP.ArgumentNull("connectionString"); 580throw ADP.Argument("connectionString"); 584if (!useDefaults && ADP.IsEmpty(queue)) { // If specified but null or empty, use defaults. 639if (!ADP.IsCatchableExceptionType(e)) { 643ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 662if (!ADP.IsCatchableExceptionType(e)) { 666ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 700if (ADP.IsEmpty(connectionString)) { 702throw ADP.ArgumentNull("connectionString"); 705throw ADP.Argument("connectionString"); 709if (!useDefaults && ADP.IsEmpty(queue)) { // If specified but null or empty, use defaults. 751Debug.Assert(!ADP.IsEmpty(server) && !ADP.IsEmpty(database), "Server or Database null/Empty upon successfull Stop()!"); 773if (!ADP.IsCatchableExceptionType(e)) { 777ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 903else if (!ADP.IsEmpty(failoverServer) && _serverUserHash.ContainsKey(failoverServer)) { 963Debug.Assert(!ADP.IsEmpty(result), "GetDefaultComposedOptions should never return null or empty string!"); 1215if (!ADP.IsEmpty(name)) {
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (38)
186if (!ADP.IsCatchableExceptionType(e)) { 190ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 263Debug.Assert(!ADP.IsEmpty(appDomainKey), "Unexpected empty appDomainKey!"); 331if (!ADP.IsCatchableExceptionType(e)) { 339ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 394if (!ADP.IsCatchableExceptionType(e)) { 397ADP.TraceExceptionWithoutRethrow(e); 406if (!ADP.IsCatchableExceptionType(f)) { 409ADP.TraceExceptionWithoutRethrow(f); // Discard failure, but trace for now. 461if (!ADP.IsCatchableExceptionType(e)) { 464ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 543if (!ADP.IsCatchableExceptionType(e)) { 546ADP.TraceExceptionWithoutRethrow(e); // Discard failure. User event could throw exception. 618if (!ADP.IsCatchableExceptionType(e)) { 621ADP.TraceExceptionWithoutRethrow(e); // Discard close failure, if it occurs. Only trace it. 658if (!ADP.IsCatchableExceptionType(e)) { 661ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace for now. 695if (!ADP.IsCatchableExceptionType(e)) { 698ADP.TraceExceptionWithoutRethrow(e); 713if (!ADP.IsCatchableExceptionType(f)) { 716ADP.TraceExceptionWithoutRethrow(f); // Discard exception from Invalidate. User events can throw. 723if (!ADP.IsCatchableExceptionType(f)) { 726ADP.TraceExceptionWithoutRethrow(f); // Discard close failure, if it occurs. Only trace it. 794if (!ADP.IsCatchableExceptionType(e)) { 797ADP.TraceExceptionWithoutRethrow(e); // Discard failure, if it should occur. 886if (!ADP.IsCatchableExceptionType(e)) { 889ADP.TraceExceptionWithoutRethrow(e); // Discard failure. 906if (!ADP.IsCatchableExceptionType(e)) { 909ADP.TraceExceptionWithoutRethrow(e); // Discard failure. 989if (!ADP.IsCatchableExceptionType(e)) { 992ADP.TraceExceptionWithoutRethrow(e); // Discard failure, if it should occur. 1004if (!ADP.IsCatchableExceptionType(e)) { 1007ADP.TraceExceptionWithoutRethrow(e); // Discard failure, if it should occur. 1034if (!ADP.IsCatchableExceptionType(e)) { 1037ADP.TraceExceptionWithoutRethrow(e); // Discard failure, if it should occur. 1046ADP.TraceExceptionWithoutRethrow(e); // Discard failure, but trace. 1363if (!ADP.IsCatchableExceptionType(f)) { 1366ADP.TraceExceptionWithoutRethrow(f); // Discard failure, but trace.
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (10)
183throw ADP.InternalError(ADP.InternalErrorCode.SqlDependencyCommandHashIsNotAssociatedWithNotification); 269if (!ADP.IsCatchableExceptionType(e)) { 272ADP.TraceExceptionWithoutRethrow(e); 314if (!ADP.IsCatchableExceptionType(e)) { 317ADP.TraceExceptionWithoutRethrow(e); 332throw ADP.ArgumentNull("id"); 334if (ADP.IsEmpty(id)) { 537if (!ADP.IsCatchableExceptionType(e)) { 544ADP.TraceExceptionWithoutRethrow(e);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (12)
250default: throw ADP.DbTypeNotSupported(target, typeof(SqlDbType)); // no direct mapping, error out 286case TypeCode.Empty: throw ADP.InvalidDataType(TypeCode.Empty); 366throw ADP.UnknownDataType(dataType); 368case TypeCode.DBNull: throw ADP.InvalidDataType(TypeCode.DBNull); 370case TypeCode.Char: throw ADP.InvalidDataType(TypeCode.Char); 371case TypeCode.SByte: throw ADP.InvalidDataType(TypeCode.SByte); 374case TypeCode.UInt16: throw ADP.InvalidDataType(TypeCode.UInt16); 376case TypeCode.UInt32: throw ADP.InvalidDataType(TypeCode.UInt32); 378case TypeCode.UInt64: throw ADP.InvalidDataType(TypeCode.UInt64); 384default: throw ADP.UnknownDataTypeCode(dataType, Type.GetTypeCode(dataType)); 427if (ADP.IsNull(sqlVal)) 734(255, 255, -1, false, false, false, TdsEnums.SQLVARBINARY, TdsEnums.SQLBIGBINARY, ADP.StrEmpty, typeof(System.Byte[]), typeof(SqlBinary), TdsEnums.SmallVarBinary, DbType.Binary, 2);
fx\src\data\System\Data\SqlClient\SqlException.cs (1)
175if (!ADP.IsEmpty(serverVersion)) {
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (7)
213throw ADP.ParallelTransactionsNotSupported(Connection); 252if (ADP.IsEmpty(database)) { 253throw ADP.EmptyDatabaseName(); 323if (!ADP.IsCatchableExceptionType(e)) { 332ADP.TraceExceptionWithoutRethrow(e); 488ADP.TraceExceptionWithoutRethrow(e); 605throw ADP.LocalTransactionPresent();
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (2)
248SysTx.Transaction currentSystemTransaction = ADP.GetCurrentTransaction(); // NOTE: Must be first to ensure _smiContext.ContextTransaction is set! 531throw ADP.OpenReaderExists(); // MDAC 66411
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (23)
700throw ADP.ClosedConnectionError(); 719throw ADP.OpenReaderExists(); // MDAC 66411 769throw ADP.TransactionConnectionMismatch(); 782throw ADP.TransactionCompletedButNotDisposed(); 894if (!ADP.IsCatchableExceptionType(e)) { 899ADP.TraceExceptionWithoutRethrow(e); 996throw ADP.InvalidIsolationLevel(iso); 999if (!ADP.IsEmpty(transactionName)) { 1078throw ADP.InvalidIsolationLevel(iso); 1250SysTx.Transaction tx = ADP.GetCurrentTransaction(); 1390bool hasFailoverPartner = !ADP.IsEmpty(failoverPartner); 1432if (ADP.IsCatchableExceptionType(e)) { 1485float failoverTimeoutStep = connectionOptions.MultiSubnetFailover ? ADP.FailoverTimeoutStep : ADP.FailoverTimeoutStepForTnir; 1488timeoutUnitInterval = checked((long)(failoverTimeoutStep * (1000L * ADP.DefaultConnectionTimeout))); 1528nextTimeoutInterval = Math.Max(ADP.MinimumTimeoutForTnirMs, nextTimeoutInterval); 1666Boolean isAzureEndPoint = ADP.IsAzureSqlServerEndpoint(connectionOptions.DataSource); 1748timeoutUnitInterval = checked((long)(ADP.FailoverTimeoutStep * ADP.TimerFromSeconds(ADP.DefaultConnectionTimeout))); 1751timeoutUnitInterval = checked((long)(ADP.FailoverTimeoutStep * timeout.MillisecondsRemaining)); 1867if (!ADP.IsAzureSqlServerEndpoint(connectionOptions.DataSource) && IsConnectionDoomed) { 2756if (!ADP.IsEmpty(protocol)) {
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (10)
220if (!ADP.IsCatchableExceptionType(e)) { 224ADP.TraceExceptionWithoutRethrow(e); 240processFinallyBlock = ADP.IsCatchableExceptionType(e); 286if (ADP.IsCatchableExceptionType(e)) { 344transactionLevelCommand.RunExecuteReader(0, RunBehavior.UntilDone, false /* returnDataStream */, ADP.GetServerTransactionLevel); 386if (ADP.IsCatchableExceptionType(e)) { 419if (ADP.IsEmpty(transactionName)) 434if (ADP.IsCatchableExceptionType(e)) { 458if (ADP.IsEmpty(savePointName)) 466if (ADP.IsCatchableExceptionType(e)) {
fx\src\data\System\Data\SqlClient\sqlmetadatafactory.cs (6)
85throw ADP.InvalidXml(); 206throw ADP.InvalidXml(); 248throw ADP.UnableToBuildCollection(DbMetaDataCollectionNames.DataTypes); 268if (ADP.IsEmptyArray(restrictions) == false) { 269throw ADP.TooManyRestrictions(DbMetaDataCollectionNames.DataTypes); 275throw ADP.UnableToBuildCollection(collectionName);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (35)
225throw ADP.ArgumentOutOfRange("CompareInfo"); 238return ((xmlSchemaCollectionDatabase != null) ? xmlSchemaCollectionDatabase : ADP.StrEmpty); 252return ((xmlSchemaCollectionOwningSchema != null) ? xmlSchemaCollectionOwningSchema : ADP.StrEmpty); 266return ((xmlSchemaCollectionName != null) ? xmlSchemaCollectionName : ADP.StrEmpty); 330throw ADP.ArgumentOutOfRange("LocaleId"); 445else if (SqlDbType.Udt == mt.SqlDbType || (SqlDbType.Structured == mt.SqlDbType && !ADP.IsEmpty(this.TypeName))) { 469throw ADP.ArgumentOutOfRange("names"); 472if ((!ADP.IsEmpty(typeSpecificNamePart1) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart1.Length) 473|| (!ADP.IsEmpty(typeSpecificNamePart2) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart2.Length) 474|| (!ADP.IsEmpty(typeSpecificNamePart3) && TdsEnums.MAX_SERVERNAME < typeSpecificNamePart3.Length)) { 475throw ADP.ArgumentOutOfRange("names"); 529return ((null != parameterName) ? parameterName : ADP.StrEmpty); 532if (ADP.IsEmpty(value) || (value.Length < TdsEnums.MAX_PARAMETER_NAME_LENGTH) 714return ((null != typeName) ? typeName : ADP.StrEmpty); 728return ((null != typeName) ? typeName : ADP.StrEmpty); 899Debug.Assert(!ADP.IsNull(value), "Value provided should not be null"); 975if (!ADP.IsCatchableExceptionType(e)) { 979throw ADP.ParameterConversionFailed(value, destinationType.ClassType, e); // WebData 75433 1400Debug.Assert(!isNull.HasValue || (isNull.Value == ADP.IsNull(value)), "isNull is incorrect"); 1442throw ADP.PrepareParameterType(cmd); 1445throw ADP.PrepareParameterSize(cmd); 1448throw ADP.PrepareParameterScale(cmd, SqlDbType.ToString()); 1482if (ADP.IsDirection(this, ParameterDirection.Output) && 1483!ADP.IsDirection(this, ParameterDirection.ReturnValue) && // SQL BU DT 372370 1494throw ADP.UninitializedParameterSize(index, metaType.ClassType); 1503if (ADP.IsEmpty (UdtTypeName)) 1506else if (!ADP.IsEmpty (UdtTypeName)) { 1512if (!isCommandProc && ADP.IsEmpty (TypeName)) 1523else if (!ADP.IsEmpty (TypeName)) { 1579throw ADP.InvalidMetaDataValue(); //Xml should always have IsPartialLength = true 1772throw ADP.ArgumentNull("destinationType"); 1790if (!ADP.IsEmpty(p.SourceColumn)) { 1803if (p.SourceColumnNullMapping || !ADP.IsEmpty(p.XmlSchemaCollectionDatabase) || 1804!ADP.IsEmpty(p.XmlSchemaCollectionOwningSchema) || !ADP.IsEmpty(p.XmlSchemaCollectionName)) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (28)
63get { throw ADP.NotSupported(); } 68get { throw ADP.NotSupported(); } 69set { throw ADP.NotSupported(); } 83throw ADP.ArgumentOutOfRange("value"); 98throw ADP.ObjectDisposed(this); 102throw ADP.AsyncOperationPending(); 112throw ADP.ErrorReadingFromStream(ex); 121throw ADP.ObjectDisposed(this); 136throw ADP.ArgumentNull("asyncResult"); 160completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 169completion.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 203completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 230completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.Exception.InnerException))); 239completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 268throw ADP.NotSupported(); 273throw ADP.NotSupported(); 278throw ADP.NotSupported(); 319throw ADP.ArgumentNull(ADP.ParameterBuffer); 323throw ADP.ArgumentOutOfRange(ADP.ParameterOffset); 327throw ADP.ArgumentOutOfRange(ADP.ParameterCount);
fx\src\data\System\Data\SqlClient\SqlSequentialStreamSmi.cs (8)
44get { throw ADP.NotSupported(); } 49get { throw ADP.NotSupported(); } 50set { throw ADP.NotSupported(); } 63throw ADP.ObjectDisposed(this); 82throw ADP.ErrorReadingFromStream(ex); 88throw ADP.NotSupported(); 93throw ADP.NotSupported(); 98throw ADP.NotSupported();
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (23)
46throw ADP.AsyncOperationPending(); 50throw ADP.ObjectDisposed(this); 66throw ADP.AsyncOperationPending(); 70throw ADP.ObjectDisposed(this); 102throw ADP.ObjectDisposed(this); 106throw ADP.AsyncOperationPending(); 134completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 143completion.SetException(ADP.ExceptionWithStackTrace(ADP.AsyncOperationPending())); 208completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 215completion.SetException(ADP.ExceptionWithStackTrace(ADP.ErrorReadingFromStream(t.Exception.InnerException))); 239completion.SetException(ADP.ExceptionWithStackTrace(ADP.ObjectDisposed(this))); 330throw ADP.ErrorReadingFromStream(ex); 456throw ADP.ArgumentNull(ADP.ParameterBuffer); 460throw ADP.ArgumentOutOfRange(ADP.ParameterIndex); 464throw ADP.ArgumentOutOfRange(ADP.ParameterCount);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReaderSmi.cs (2)
47throw ADP.ObjectDisposed(this); 79throw ADP.ObjectDisposed(this);
fx\src\data\System\Data\SqlClient\SqlStatistics.cs (7)
110ht.Add ("ConnectionTime", ADP.TimerToMilliseconds(_connectionTime)); 111ht.Add ("ExecutionTime", ADP.TimerToMilliseconds(_executionTime)); 112ht.Add ("NetworkServerTime", ADP.TimerToMilliseconds(_networkServerTime)); 119ADP.TimerCurrent(out _startExecutionTimestamp); 128ADP.TimerCurrent(out _startNetworkServerTimestamp); 135_executionTime += (ADP.TimerCurrent() - _startExecutionTimestamp); 142_networkServerTime += (ADP.TimerCurrent() - _startNetworkServerTimestamp);
fx\src\data\System\Data\SqlClient\SqlStream.cs (41)
68throw ADP.NotSupported(); 74throw ADP.NotSupported(); 77throw ADP.NotSupported(); 94throw ADP.NotSupported(); 102throw ADP.StreamClosed(ADP.Read); 105throw ADP.ArgumentNull(ADP.ParameterBuffer); 108throw ADP.ArgumentOutOfRange(String.Empty, (offset < 0 ? ADP.ParameterOffset : ADP.ParameterCount)); 111throw ADP.ArgumentOutOfRange(ADP.ParameterCount); 237if (_advanceReader && ADP.IsCatchableExceptionType(e)) { 253throw ADP.NotSupported(); 257throw ADP.NotSupported(); 261throw ADP.NotSupported(); 318throw ADP.StreamClosed(ADP.ParameterSetPosition); 320SetInternalPosition(value, ADP.ParameterSetPosition); 339throw ADP.NotSupported(); 347throw ADP.StreamClosed(ADP.Read); 351throw ADP.ArgumentNull(ADP.ParameterBuffer); 355throw ADP.ArgumentOutOfRange(String.Empty, (offset < 0 ? ADP.ParameterOffset : ADP.ParameterCount)); 359throw ADP.ArgumentOutOfRange(ADP.ParameterCount); 394throw ADP.StreamClosed(ADP.Read); 399SetInternalPosition(offset, ADP.ParameterOffset); 404SetInternalPosition(pos, ADP.ParameterOffset); 409SetInternalPosition(pos, ADP.ParameterOffset); 413throw ADP.InvalidSeekOrigin(ADP.ParameterOffset); 419throw ADP.NotSupported(); 423throw ADP.NotSupported(); 503throw ADP.NonSeqByteAccess(dataIndex, _charsRemoved, ADP.GetChars);
fx\src\data\System\Data\SqlClient\SqlTransaction.cs (1)
416throw ADP.TransactionZombied(this);
fx\src\data\System\Data\SqlClient\SqlUtil.cs (297)
234return ADP.InvalidOperation(Res.GetString(Res.SQL_CannotGetDTCAddress)); 238return ADP.Argument(Res.GetString(Res.SQL_InvalidOptionLength, key)); 241return ADP.ArgumentOutOfRange (str); 244return ADP.ArgumentOutOfRange (Res.GetString(Res.SQL_InvalidTDSPacketSize)); 247return ADP.Argument(Res.GetString(Res.SQL_InvalidPacketSizeValue)); 250return ADP.Argument(Res.GetString(Res.SQL_InvalidSSPIPacketSize)); 253return ADP.Argument(Res.GetString(Res.SQL_NullEmptyTransactionName)); 256return ADP.Argument(Res.GetString(Res.SQL_SnapshotNotSupported, typeof(IsolationLevel), level.ToString())); 259return ADP.Argument(Res.GetString(Res.SQL_UserInstanceFailoverNotCompatible)); 262return ADP.InvalidOperation(Res.GetString(Res.SQL_CredentialsNotProvided, DbConnectionStringBuilderUtil.AuthenticationTypeToString(auth))); 265return ADP.Argument(Res.GetString(Res.SQL_AuthenticationAndIntegratedSecurity)); 268return ADP.Argument(Res.GetString(Res.SQL_IntegratedWithUserIDAndPassword)); 271return ADP.Argument(Res.GetString(Res.SQL_InteractiveWithoutUserID)); 274return ADP.Argument(Res.GetString(Res.SQL_InteractiveWithPassword)); 277return ADP.InvalidOperation(Res.GetString(Res.SQL_SettingIntegratedWithCredential)); 280return ADP.Argument(Res.GetString(Res.SQL_SettingCredentialWithIntegrated)); 283return ADP.InvalidOperation(Res.GetString(Res.SQL_SettingCredentialWithIntegrated)); 286return ADP.DataAdapter(Res.GetString(Res.SQL_InvalidSQLServerVersionUnknown)); 292return ADP.InvalidOperation(Res.GetString(Res.SQL_ConnectionLockedForBcpEvent)); 295return ADP.InvalidOperation(Res.GetString(Res.SQL_AsyncConnectionRequired)); 298return ADP.InvalidOperation(Res.GetString(Res.SQL_FatalTimeout)); 301return ADP.InvalidOperation(Res.GetString(Res.SQL_InstanceFailure)); 304return ADP.ArgumentNull(Res.GetString(Res.SQL_ChangePasswordArgumentMissing, argumentName)); 307return ADP.Argument(Res.GetString(Res.SQL_ChangePasswordConflictsWithSSPI)); 310return ADP.InvalidOperation(Res.GetString(Res.SQL_ChangePasswordRequiresYukon)); 313return ADP.InvalidOperation(Res.GetString(Res.SQL_UnknownSysTxIsolationLevel, isolationLevel.ToString())); 316return ADP.InvalidOperation(Res.GetString(Res.SQL_ChangePasswordUseOfUnallowedKey, key)); 319return ADP.InvalidOperation(Res.GetString(Res.SQL_InvalidPartnerConfiguration, server, database)); 322return ADP.InvalidOperation(Res.GetString(Res.TCE_BatchedUpdateColumnEncryptionSettingMismatch, "SqlCommandColumnEncryptionSetting", "SelectCommand", "InsertCommand", "UpdateCommand", "DeleteCommand")); 325return ADP.InvalidOperation(Res.GetString(Res.SQL_MarsUnsupportedOnConnection)); 329return ADP.InvalidOperation(Res.GetString(Res.SQL_CannotModifyPropertyAsyncOperationInProgress, property)); 332return ADP.NotSupported(Res.GetString(Res.SQL_NonLocalSSEInstance)); 338return ADP.NotSupported(Res.GetString(Res.SQL_UnsupportedAuthentication, authentication)); 342return ADP.NotSupported(Res.GetString(Res.SQL_UnsupportedSqlAuthenticationMethod, authentication)); 346return ADP.Argument(Res.GetString(Res.SQL_CannotCreateAuthProvider, authentication, type), e); 350return ADP.Argument(Res.GetString(Res.SQL_CannotCreateAuthInitializer, type), e); 354return ADP.InvalidOperation(Res.GetString(Res.SQL_CannotInitializeAuthProvider, type), e); 358return ADP.NotSupported(Res.GetString(Res.SQL_UnsupportedAuthenticationByProvider, type, authentication)); 362return ADP.Argument(Res.GetString(Res.SQL_CannotFindAuthProvider, authentication)); 366return ADP.InvalidOperation(Res.GetString(Res.SQL_CannotGetAuthProviderConfig), e); 370return ADP.ArgumentNull(Res.GetString(Res.SQL_ParameterCannotBeEmpty, paramName)); 377return ADP.NotSupported(Res.GetString(Res.SQL_NotificationsRequireYukon)); 381return ADP.ArgumentOutOfRange(Res.GetString(Res.SQL_NotSupportedEnumerationValue, type.Name, value.ToString(System.Globalization.CultureInfo.InvariantCulture)), type.Name); 422Exception exception = ADP.InvalidOperation(Res.GetString(Res.SQL_OperationCancelled)); 427return ADP.InvalidOperation(Res.GetString(Res.SQL_PendingBeginXXXExists)); 431return ADP.ArgumentOutOfRange(Res.GetString(Res.SqlDependency_InvalidTimeout), param); 435return ADP.InvalidOperation(Res.GetString(Res.SQL_NonXmlResult)); 442return ADP.Argument(Res.GetString(Res.SQL_InvalidUdt3PartNameFormat)); 445return ADP.Argument(Res.GetString(Res.SQL_InvalidParameterTypeNameFormat)); 448return ADP.Argument(Res.GetString(Res.SQL_InvalidParameterNameLength, value)); 451return ADP.Argument(Res.GetString(Res.SQL_PrecisionValueOutOfRange, precision.ToString(CultureInfo.InvariantCulture))); 454return ADP.Argument(Res.GetString(Res.SQL_ScaleValueOutOfRange, scale.ToString(CultureInfo.InvariantCulture))); 457return ADP.Argument(Res.GetString(Res.SQL_TimeScaleValueOutOfRange, scale.ToString(CultureInfo.InvariantCulture))); 460return ADP.InvalidEnumerationValue(typeof(SqlDbType), (int) value); 463return ADP.NotSupported(Res.GetString(Res.SqlParameter_UnsupportedTVPOutputParameter, 467return ADP.NotSupported(Res.GetString(Res.SqlParameter_DBNullNotSupportedForTVP, paramName)); 470return ADP.InvalidOperation(Res.GetString(Res.SqlParameter_InvalidTableDerivedPrecisionForTvp, precision, columnName, System.Data.SqlTypes.SqlDecimal.MaxPrecision)); 473return ADP.NotSupported(Res.GetString(Res.SqlParameter_UnexpectedTypeNameForNonStruct, paramName)); 476return ADP.NotSupported(Res.GetString(Res.MetaType_SingleValuedStructNotSupported)); 479return ADP.InvalidOperation(Res.GetString(Res.SQL_ParameterInvalidVariant, paramName)); 483return ADP.Argument(Res.GetString(Res.SQL_ParameterTypeNameRequired, paramType, paramName)); 486return ADP.Argument(Res.GetString(Res.NullSchemaTableDataTypeNotSupported, columnName)); 489return ADP.Argument(Res.GetString(Res.InvalidSchemaTableOrdinals)); 492return ADP.Argument(Res.GetString(Res.SQL_EnumeratedRecordMetaDataChanged, fieldName, recordNumber)); 495return ADP.Argument(Res.GetString(Res.SQL_EnumeratedRecordFieldCountChanged, recordNumber)); 506return ADP.InvalidOperation(Res.GetString(Res.SQL_InvalidTDSVersion)); 509return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorWithState, ((int)state).ToString(CultureInfo.InvariantCulture))); 512return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorWithState, ((int)state).ToString(CultureInfo.InvariantCulture)), innerException); 515return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorValue, ((int)state).ToString(CultureInfo.InvariantCulture), value)); 518return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorOffset, ((int)state).ToString(CultureInfo.InvariantCulture), offset)); 521return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorFeatureId, ((int)state).ToString(CultureInfo.InvariantCulture), featureId)); 524return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorToken, ((int)state).ToString(CultureInfo.InvariantCulture), token)); 527return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorLength, ((int)state).ToString(CultureInfo.InvariantCulture), length)); 530return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorStatus, ((int)state).ToString(CultureInfo.InvariantCulture), status)); 533return ADP.InvalidOperation(Res.GetString(Res.SQL_ParsingErrorAuthLibraryType, ((int)state).ToString(CultureInfo.InvariantCulture), libraryType)); 537return ADP.Overflow(Res.GetString(Res.SQL_MoneyOverflow, moneyValue)); 540return ADP.Overflow(Res.GetString(Res.SQL_SmallDateTimeOverflow, datetime)); 543return ADP.InvalidOperation(Res.GetString(Res.SQL_SNIPacketAllocationFailure)); 546return ADP.Overflow(Res.GetString(Res.SQL_TimeOverflow, time)); 553return ADP.InvalidOperation(Res.GetString(Res.SQL_InvalidRead)); 557return ADP.InvalidCast(Res.GetString(Res.SQL_NonBlobColumn, columnName)); 561return ADP.InvalidCast(Res.GetString(Res.SQL_NonCharColumn, columnName)); 565return ADP.InvalidCast(Res.GetString(Res.SQL_StreamNotSupportOnColumnType, columnName)); 569return ADP.InvalidOperation(Res.GetString(Res.TCE_StreamNotSupportOnEncryptedColumn, columnName, "Stream")); 573return ADP.InvalidOperation(Res.GetString(Res.TCE_SequentialAccessNotSupportedOnEncryptedColumn, columnName, "CommandBehavior=SequentialAccess")); 577return ADP.InvalidCast(Res.GetString(Res.SQL_TextReaderNotSupportOnColumnType, columnName)); 581return ADP.InvalidCast(Res.GetString(Res.SQL_XmlReaderNotSupportOnColumnType, columnName)); 585return ADP.TypeLoad(Res.GetString(Res.SQLUDT_Unexpected,exceptionText)); 599ADP.TraceExceptionAsReturnValue(e); 607return ADP.InvalidOperation(Res.GetString(Res.SQLNotify_AlreadyHasCommand)); 611return ADP.InvalidOperation(Res.GetString(Res.SqlNotify_SqlDepCannotBeCreatedInProc)); 615return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_DefaultOptionsButNoStart)); 619return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_DatabaseBrokerDisabled)); 623return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_EventNoDuplicate)); 627return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_DuplicateStart)); 632return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_IdMismatch)); 636return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_NoMatchingServerStart)); 640return ADP.InvalidOperation(Res.GetString(Res.SqlDependency_NoMatchingServerDatabaseStart)); 644return ADP.InvalidOperation(Res.GetString(Res.SQLNotify_ErrorFormat, notify.Type,notify.Info,notify.Source)); 651return ADP.InvalidOperation(Res.GetString(Res.SqlMetaData_NoMetadata)); 655return ADP.Argument(Res.GetString(Res.SQLUDT_InvalidUdtTypeName)); 659return ADP.Argument(Res.GetString(Res.SQLUDT_UnexpectedUdtTypeName)); 663return ADP.Argument(Res.GetString(Res.SQLUDT_InvalidSqlType, typeName)); 667return ADP.Argument(Res.GetString(Res.SqlMetaData_InvalidSqlDbTypeForConstructorFormat, type.ToString())); 671return ADP.Argument(Res.GetString(Res.SqlMetaData_NameTooLong), parameterName); 675return ADP.InvalidEnumerationValue(typeof(SortOrder), (int)order); 679return ADP.InvalidOperation(Res.GetString(Res.SqlMetaData_SpecifyBothSortOrderAndOrdinal, order.ToString(), ordinal)); 683return ADP.Argument(Res.GetString(Res.SQLTVP_TableTypeCanOnlyBeParameter)); 686return ADP.Argument(Res.GetString(Res.SqlProvider_InvalidDataColumnType, columnName, typeName)); 689return ADP.Argument(Res.GetString(Res.SqlProvider_InvalidDataColumnMaxLength, columnName, maxLength)); 692return ADP.Argument(Res.GetString(Res.SqlMisc_InvalidPrecScaleMessage)); 695return ADP.Argument(Res.GetString(Res.SqlProvider_NotEnoughColumnsInStructuredType)); 698return ADP.InvalidOperation(Res.GetString(Res.SqlProvider_DuplicateSortOrdinal, sortOrdinal)); 701return ADP.InvalidOperation(Res.GetString(Res.SqlProvider_MissingSortOrdinal, sortOrdinal)); 704return ADP.InvalidOperation(Res.GetString(Res.SqlProvider_SortOrdinalGreaterThanFieldCount, sortOrdinal, columnOrdinal)); 707return ADP.Argument(Res.GetString(Res.IEnumerableOfSqlDataRecordHasNoRows)); 716return ADP.InvalidOperation(Res.GetString(Res.SqlPipe_CommandHookedUpToNonContextConnection)); 720return ADP.Argument(Res.GetString(Res.SqlPipe_MessageTooLong, messageLength)); 724return ADP.InvalidOperation(Res.GetString(Res.SqlPipe_IsBusy)); 728return ADP.InvalidOperation(Res.GetString(Res.SqlPipe_AlreadyHasAnOpenResultSet, methodName)); 732return ADP.InvalidOperation(Res.GetString(Res.SqlPipe_DoesNotHaveAnOpenResultSet, methodName)); 740return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlResultSetClosed2)); 742return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlResultSetClosed, methodname)); 745return ADP.InvalidOperation(Res.GetString(Res.ADP_DataReaderNoData, methodname)); 749return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlRecordReadOnly2)); 751return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlRecordReadOnly, methodname)); 756return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlResultSetRowDeleted2)); 758return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlResultSetRowDeleted, methodname)); 762return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlResultSetCommandNotInSameConnection)); 766return ADP.InvalidOperation(Res.GetString(Res.SQL_SqlResultSetNoAcceptableCursor)); 773return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadMappingInaccessible)); 776return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadMappingsNamesOrOrdinalsOnly)); 779return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadCannotConvertValue, sourcetype.Name, metatype.TypeName), e); 782return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadNonMatchingColumnMapping)); 788return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadNonMatchingColumnName, columnName), e); 791return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadStringTooLong)); 794return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadInvalidVariantValue)); 797return ADP.Argument(Res.GetString(Res.SQL_BulkLoadInvalidTimeout, timeout.ToString(CultureInfo.InvariantCulture))); 800return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadExistingTransaction)); 803return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadNoCollation)); 806return ADP.Argument(Res.GetString(Res.SQL_BulkLoadConflictingTransactionOption)); 809return ADP.InvalidOperation (Res.GetString (Res.Sql_BulkLoadLcidMismatch, sourceLcid, sourceColumnName, destinationLcid, destinationColumnName)); 812return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadInvalidOperationInsideEvent)); 815return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadMissingDestinationTable)); 818return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadInvalidDestinationTable, tableName), inner); 821return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadNotAllowDBNull, columnName)); 824return ADP.InvalidOperation(Res.GetString(Res.SQL_BulkLoadPendingOperation)); 832return ADP.Argument(Res.GetString(Res.TCE_InvalidKeyEncryptionAlgorithmSysErr, encryptionAlgorithm, validEncryptionAlgorithm), TdsEnums.TCE_PARAM_ENCRYPTION_ALGORITHM); 835return ADP.Argument(Res.GetString(Res.TCE_InvalidKeyEncryptionAlgorithm, encryptionAlgorithm, validEncryptionAlgorithm), TdsEnums.TCE_PARAM_ENCRYPTION_ALGORITHM); 841return ADP.ArgumentNull (TdsEnums.TCE_PARAM_ENCRYPTION_ALGORITHM, Res.GetString(Res.TCE_NullKeyEncryptionAlgorithmSysErr)); 844return ADP.ArgumentNull (TdsEnums.TCE_PARAM_ENCRYPTION_ALGORITHM, Res.GetString(Res.TCE_NullKeyEncryptionAlgorithm)); 849return ADP.Argument(Res.GetString(Res.TCE_EmptyColumnEncryptionKey), TdsEnums.TCE_PARAM_COLUMNENCRYPTION_KEY); 853return ADP.ArgumentNull(TdsEnums.TCE_PARAM_COLUMNENCRYPTION_KEY, Res.GetString(Res.TCE_NullColumnEncryptionKey)); 857return ADP.Argument(Res.GetString(Res.TCE_EmptyEncryptedColumnEncryptionKey), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 861return ADP.ArgumentNull(TdsEnums.TCE_PARAM_ENCRYPTED_CEK, Res.GetString(Res.TCE_NullEncryptedColumnEncryptionKey)); 866return ADP.Argument(Res.GetString(Res.TCE_LargeCertificatePathLengthSysErr, actualLength, maxLength), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 869return ADP.Argument(Res.GetString(Res.TCE_LargeCertificatePathLength, actualLength, maxLength), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 876return ADP.ArgumentNull(TdsEnums.TCE_PARAM_MASTERKEY_PATH, Res.GetString(Res.TCE_NullCertificatePathSysErr, validLocations[0], validLocations[1], @"/")); 879return ADP.ArgumentNull(TdsEnums.TCE_PARAM_MASTERKEY_PATH, Res.GetString(Res.TCE_NullCertificatePath, validLocations[0], validLocations[1], @"/")); 885return ADP.ArgumentNull(TdsEnums.TCE_PARAM_MASTERKEY_PATH, Res.GetString(Res.TCE_NullCspPathSysErr, @"/")); 888return ADP.ArgumentNull(TdsEnums.TCE_PARAM_MASTERKEY_PATH, Res.GetString(Res.TCE_NullCspPath, @"/")); 894return ADP.ArgumentNull(TdsEnums.TCE_PARAM_MASTERKEY_PATH, Res.GetString(Res.TCE_NullCngPathSysErr, @"/")); 897return ADP.ArgumentNull(TdsEnums.TCE_PARAM_MASTERKEY_PATH, Res.GetString(Res.TCE_NullCngPath, @"/")); 904return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificatePathSysErr, actualCertificatePath, validLocations[0], validLocations[1], @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 907return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificatePath, actualCertificatePath, validLocations[0], validLocations[1], @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 913return ADP.Argument(Res.GetString(Res.TCE_InvalidCspPathSysErr, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 916return ADP.Argument(Res.GetString(Res.TCE_InvalidCspPath, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 922return ADP.Argument(Res.GetString(Res.TCE_InvalidCngPathSysErr, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 925return ADP.Argument(Res.GetString(Res.TCE_InvalidCngPath, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 931return ADP.Argument(Res.GetString(Res.TCE_EmptyCspNameSysErr, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 934return ADP.Argument(Res.GetString(Res.TCE_EmptyCspName, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 940return ADP.Argument(Res.GetString(Res.TCE_EmptyCngNameSysErr, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 943return ADP.Argument(Res.GetString(Res.TCE_EmptyCngName, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 949return ADP.Argument(Res.GetString(Res.TCE_EmptyCspKeyIdSysErr, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 952return ADP.Argument(Res.GetString(Res.TCE_EmptyCspKeyId, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 958return ADP.Argument(Res.GetString(Res.TCE_EmptyCngKeyIdSysErr, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 961return ADP.Argument(Res.GetString(Res.TCE_EmptyCngKeyId, masterKeyPath, @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 967return ADP.Argument(Res.GetString(Res.TCE_InvalidCspNameSysErr, cspName, masterKeyPath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 970return ADP.Argument(Res.GetString(Res.TCE_InvalidCspName, cspName, masterKeyPath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 976return ADP.Argument(Res.GetString(Res.TCE_InvalidCspKeyIdSysErr, keyIdentifier, masterKeyPath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 979return ADP.Argument(Res.GetString(Res.TCE_InvalidCspKeyId, keyIdentifier, masterKeyPath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 985return ADP.Argument(Res.GetString(Res.TCE_InvalidCngKeySysErr, masterKeyPath, cngProviderName, keyIdentifier), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 988return ADP.Argument(Res.GetString(Res.TCE_InvalidCngKey, masterKeyPath, cngProviderName, keyIdentifier), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 995return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificateLocationSysErr, certificateLocation, certificatePath, validLocations[0], validLocations[1], @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 998return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificateLocation, certificateLocation, certificatePath, validLocations[0], validLocations[1], @"/"), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1004return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificateStoreSysErr, certificateStore, certificatePath, validCertificateStore), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1007return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificateStore, certificateStore, certificatePath, validCertificateStore), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1013return ADP.Argument(Res.GetString(Res.TCE_EmptyCertificateThumbprintSysErr, certificatePath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1016return ADP.Argument(Res.GetString(Res.TCE_EmptyCertificateThumbprint, certificatePath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1022return ADP.Argument(Res.GetString(Res.TCE_CertificateNotFoundSysErr, thumbprint, certificateLocation, certificateStore), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1025return ADP.Argument(Res.GetString(Res.TCE_CertificateNotFound, thumbprint, certificateLocation, certificateStore), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1030return ADP.Argument(Res.GetString(Res.TCE_InvalidAlgorithmVersionInEncryptedCEK, actual.ToString(@"X2"), expected.ToString(@"X2")), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1034return ADP.Argument(Res.GetString(Res.TCE_InvalidCiphertextLengthInEncryptedCEK, actual, expected, certificateName), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1038return ADP.Argument(Res.GetString(Res.TCE_InvalidCiphertextLengthInEncryptedCEKCsp, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1042return ADP.Argument(Res.GetString(Res.TCE_InvalidCiphertextLengthInEncryptedCEKCng, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1046return ADP.Argument(Res.GetString(Res.TCE_InvalidSignatureInEncryptedCEK, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1050return ADP.Argument(Res.GetString(Res.TCE_InvalidSignatureInEncryptedCEKCsp, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1054return ADP.Argument(Res.GetString(Res.TCE_InvalidSignatureInEncryptedCEKCng, actual, expected, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1058return ADP.Argument(Res.GetString(Res.TCE_InvalidCertificateSignature, certificatePath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1062return ADP.Argument(Res.GetString(Res.TCE_InvalidSignature, masterKeyPath), TdsEnums.TCE_PARAM_ENCRYPTED_CEK); 1067return ADP.Argument(Res.GetString(Res.TCE_CertificateWithNoPrivateKeySysErr, keyPath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1070return ADP.Argument(Res.GetString(Res.TCE_CertificateWithNoPrivateKey, keyPath), TdsEnums.TCE_PARAM_MASTERKEY_PATH); 1078return ADP.ArgumentNull(TdsEnums.TCE_PARAM_ENCRYPTIONKEY,Res.GetString(Res.TCE_NullColumnEncryptionKeySysErr)); 1082return ADP.Argument(Res.GetString( 1091return ADP.Argument(Res.GetString( 1099return ADP.ArgumentNull (Res.GetString(Res.TCE_NullPlainText)); 1103return ADP.Argument(Res.GetString(Res.TCE_VeryLargeCiphertext, cipherTextLength, maxCipherTextSize, plainTextLength)); 1107return ADP.ArgumentNull (Res.GetString(Res.TCE_NullCipherText)); 1111return ADP.Argument(Res.GetString(Res.TCE_InvalidCipherTextSize, actualSize, minimumSize), TdsEnums.TCE_PARAM_CIPHERTEXT); 1115return ADP.Argument(Res.GetString(Res.TCE_InvalidAlgorithmVersion, actual.ToString(@"X2"), expected.ToString(@"X2")), TdsEnums.TCE_PARAM_CIPHERTEXT); 1119return ADP.Argument(Res.GetString(Res.TCE_InvalidAuthenticationTag), TdsEnums.TCE_PARAM_CIPHERTEXT); 1123return ADP.ArgumentNull (TdsEnums.TCE_PARAM_ENCRYPTION_ALGORITHM, Res.GetString(Res.TCE_NullColumnEncryptionAlgorithm, supportedAlgorithms)); 1130return ADP.Argument (Res.GetString(Res.TCE_UnexpectedDescribeParamFormatParameterMetadata, "sp_describe_parameter_encryption")); 1134return ADP.Argument (Res.GetString(Res.TCE_UnexpectedDescribeParamFormatAttestationInfo, "sp_describe_parameter_encryption", enclaveType)); 1138return ADP.InvalidOperation(Res.GetString(Res.TCE_InvalidEncryptionKeyOrdinalEnclaveMetadata, ordinal, maxOrdinal)); 1141return ADP.InvalidOperation(Res.GetString(Res.TCE_InvalidEncryptionKeyOrdinalParameterMetadata, ordinal, maxOrdinal)); 1145return ADP.InvalidOperation(Res.GetString(Res.TCE_MultipleRowsReturnedForAttestationInfo, "sp_describe_parameter_encryption")); 1149return ADP.Argument (Res.GetString(Res.TCE_ParamEncryptionMetaDataMissing, "sp_describe_parameter_encryption", paramName, procedureName)); 1153return ADP.InvalidOperation(Res.GetString(Res.TCE_ParamInvalidForceColumnEncryptionSetting, TdsEnums.TCE_PARAM_FORCE_COLUMN_ENCRYPTION, paramName, procedureName, "SqlParameter")); 1157return ADP.InvalidOperation(Res.GetString(Res.TCE_ParamUnExpectedEncryptionMetadata, paramName, procedureName, TdsEnums.TCE_PARAM_FORCE_COLUMN_ENCRYPTION, "SqlParameter")); 1161return ADP.Argument (Res.GetString(Res.TCE_ProcEncryptionMetaDataMissing, "sp_describe_parameter_encryption", procedureName)); 1168return ADP.Argument(Res.GetString(Res.TCE_InvalidKeyStoreProviderName, providerName, systemProviderStr, customProviderStr)); 1173return ADP.InvalidOperation(Res.GetString(Res.TCE_UnableToVerifyColumnMasterKeySignature, innerExeption.Message), innerExeption); 1177return ADP.InvalidOperation(Res.GetString(Res.TCE_ColumnMasterKeySignatureVerificationFailed, cmkPath)); 1181return ADP.Argument(Res.GetString(Res.TCE_ColumnMasterKeySignatureNotFound, cmkPath)); 1188return ADP.InvalidOperation(Res.GetString(Res.TCE_ExceptionWhenGeneratingEnclavePackage, innerExeption.Message), innerExeption); 1192return ADP.InvalidOperation(Res.GetString(Res.TCE_FailedToEncryptRegisterRulesBytePackage, innerExeption.Message), innerExeption); 1196return ADP.Argument(Res.GetString(Res.TCE_InvalidKeyIdUnableToCastToUnsignedShort, keyId, innerException.Message), innerException); 1200return ADP.Argument(Res.GetString(Res.TCE_InvalidDatabaseIdUnableToCastToUnsignedInt, databaseId, innerException.Message), innerException); 1204return ADP.Argument(Res.GetString(Res.TCE_InvalidAttestationParameterUnableToConvertToUnsignedInt, enclaveType, intValue, variableName, innerException.Message), innerException); 1208return ADP.Argument(Res.GetString(Res.TCE_OffsetOutOfBounds, type, method)); 1212return ADP.Argument(Res.GetString(Res.TCE_InsufficientBuffer, argument, type, method)); 1216return ADP.Argument(Res.GetString(Res.TCE_ColumnEncryptionKeysNotFound)); 1224return ADP.Argument(Res.GetString(Res.TCE_AttestationInfoNotReturnedFromSQLServer, enclaveType, enclaveAttestationUrl)); 1231return ADP.ArgumentNull(argumentName, Res.GetString(Res.TCE_NullArgumentInConstructorInternal, argumentName, objectUnderConstruction)); 1235return ADP.Argument(Res.GetString(Res.TCE_EmptyArgumentInConstructorInternal, argumentName, objectUnderConstruction)); 1239return ADP.ArgumentNull(argumentName, Res.GetString(Res.TCE_NullArgumentInternal, argumentName, type, method)); 1243return ADP.Argument(Res.GetString(Res.TCE_EmptyArgumentInternal, argumentName, type, method)); 1250return ADP.InvalidOperation(Res.GetString(Res.TCE_CannotGetSqlColumnEncryptionEnclaveProviderConfig, innerException.Message), innerException); 1254return ADP.InvalidOperation(Res.GetString(Res.TCE_CannotCreateSqlColumnEncryptionEnclaveProvider, providerName, type, innerException.Message), innerException); 1258return ADP.InvalidOperation(Res.GetString(Res.TCE_SqlColumnEncryptionEnclaveProviderNameCannotBeEmpty)); 1262return ADP.InvalidOperation(Res.GetString(Res.TCE_NoAttestationUrlSpecifiedForEnclaveBasedQuerySpDescribe, "sp_describe_parameter_encryption", enclaveType)); 1266return ADP.InvalidOperation(Res.GetString(Res.TCE_NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage, enclaveType)); 1270return ADP.InvalidOperation(Res.GetString(Res.TCE_EnclaveTypeNullForEnclaveBasedQuery)); 1274return ADP.InvalidOperation(Res.GetString(Res.TCE_EnclaveProvidersNotConfiguredForEnclaveBasedQuery)); 1278return ADP.InvalidOperation(Res.GetString(Res.TCE_EnclaveProviderNotFound, enclaveType)); 1282return ADP.InvalidOperation(Res.GetString(Res.TCE_NullEnclaveSessionReturnedFromProvider, enclaveType, attestationUrl)); 1324return ADP.Argument(Res.GetString(Res.TCE_UnknownColumnEncryptionAlgorithm, algorithmName, supportedAlgorithms)); 1328return ADP.Argument(Res.GetString(Res.TCE_UnknownColumnEncryptionAlgorithmId, algoId, supportAlgorithmIds), TdsEnums.TCE_PARAM_CIPHER_ALGORITHM_ID); 1332return ADP.Argument(Res.GetString(Res.TCE_UnsupportedNormalizationVersion, version, "'1'", "SQL Server")); 1339return ADP.Argument(Res.GetString(Res.TCE_UnrecognizedKeyStoreProviderName, providerName, systemProviderStr, customProviderStr)); 1343return ADP.Argument(Res.GetString(Res.TCE_NullProviderValue, parameterName, actualDataType, expectedDataType)); 1356return ADP.Argument(Res.GetString(Res.TCE_UntrustedKeyPath, keyPath, serverName)); 1360return ADP.Argument(Res.GetString(Res.TCE_UnsupportedDatatype, dataType)); 1368return ADP.Argument(Res.GetString(Res.TCE_NullEnclaveSessionDuringQueryExecution, enclaveType, enclaveAttestationUrl)); 1372return ADP.Argument(Res.GetString(Res.TCE_NullEnclavePackageForEnclaveBasedQuery, enclaveType, enclaveAttestationUrl)); 1379return ADP.InvalidOperation (Res.GetString (Res.TCE_NotSupportedByServer, "SQL Server")); 1383return ADP.InvalidOperation (Res.GetString (Res.TCE_EnclaveComputationsNotSupported)); 1387return ADP.InvalidOperation (Res.GetString (Res.TCE_EnclaveTypeNotReturned)); 1394return ADP.InvalidOperation(Res.GetString(Res.TCE_CanOnlyCallOnce)); 1398return ADP.ArgumentNull(TdsEnums.TCE_PARAM_CLIENT_KEYSTORE_PROVIDERS, Res.GetString(Res.TCE_NullCustomKeyStoreProviderDictionary)); 1402return ADP.Argument(Res.GetString(Res.TCE_InvalidCustomKeyStoreProviderName, providerName, prefix), TdsEnums.TCE_PARAM_CLIENT_KEYSTORE_PROVIDERS); 1406return ADP.ArgumentNull(TdsEnums.TCE_PARAM_CLIENT_KEYSTORE_PROVIDERS, Res.GetString(Res.TCE_NullProviderValue, providerName)); 1410return ADP.ArgumentNull(TdsEnums.TCE_PARAM_CLIENT_KEYSTORE_PROVIDERS, Res.GetString(Res.TCE_EmptyProviderName)); 1417return ADP.InvalidOperation(Res.GetString(Res.SQL_ConnectionDoomed)); 1421return ADP.InvalidOperation(Res.GetString(Res.SQL_OpenResultCountExceeded)); 1428return ADP.InvalidOperation(Res.GetString(Res.GT_Disabled)); 1432return ADP.InvalidOperation(Res.GetString(Res.GT_UnsupportedSysTxVersion)); 1466return ADP.Argument(msg); 1472return ADP.InvalidOperation(msg); 1477return ADP.Argument(msg); 1482return ADP.Argument(msg); 1490return ADP.Argument(Res.GetString(Res.SQLROR_FailoverNotSupported)); 1603return ADP.InvalidOperation(Res.GetString(Res.SQL_BatchedUpdatesNotAvailableOnContextConnection)); 1606return ADP.InvalidOperation(Res.GetString(Res.SQL_ContextAllowsLimitedKeywords)); 1609return ADP.InvalidOperation(Res.GetString(Res.SQL_ContextAllowsOnlyTypeSystem2005)); 1612return ADP.InvalidOperation(Res.GetString(Res.SQL_ContextConnectionIsInUse)); 1615return ADP.InvalidOperation(Res.GetString(Res.SQL_ContextUnavailableOutOfProc)); 1618return ADP.InvalidOperation(Res.GetString(Res.SQL_ContextUnavailableWhileInProc)); 1621return ADP.InvalidOperation(Res.GetString(Res.SQL_NestedTransactionScopesNotSupported)); 1624return ADP.InvalidOperation(Res.GetString(Res.SQL_NotAvailableOnContextConnection)); 1627return ADP.InvalidOperation(Res.GetString(Res.SQL_NotificationsNotAvailableOnContextConnection)); 1631return ADP.InvalidOperation(Res.GetString(Res.SQL_UnexpectedSmiEvent, (int)eventType)); 1634return ADP.InvalidOperation(Res.GetString(Res.SQL_UserInstanceNotAvailableInProc)); 1637return ADP.Argument( Res.GetString( Res.SQL_ArgumentLengthMismatch, arg1, arg2 ) ); 1640return ADP.Argument( Res.GetString( Res.SQL_InvalidSqlDbTypeWithOneAllowedType, invalidType, method, allowedType ) ); 1643return ADP.InvalidOperation(Res.GetString(Res.SQL_PipeErrorRequiresSendEnd)); 1646return ADP.Argument(Res.GetString(Res.SQL_TooManyValues), arg); 1649return ADP.NotSupported(Res.GetString(Res.SQL_StreamWriteNotSupported)); 1652return ADP.NotSupported(Res.GetString(Res.SQL_StreamReadNotSupported)); 1655return ADP.NotSupported(Res.GetString(Res.SQL_StreamSeekNotSupported)); 1659ADP.TraceExceptionAsReturnValue(e); 1665return ADP.InvalidOperation(Res.GetString(Res.OleDb_CommandParameterError, index.ToString(CultureInfo.InvariantCulture), "SqlParameter.Size")); 1668return ADP.InvalidOperation(Res.GetString(Res.SqlMisc_SubclassMustOverride)); 1807Debug.Assert(!ADP.IsEmpty(name), "null or empty identifiers are not allowed"); 1816Debug.Assert(!ADP.IsEmpty(name), "null or empty identifiers are not allowed"); 1839if (ADP.IsEmpty(input)) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (82)
751Version systemDataVersion = ADP.GetAssemblyVersion(); 1288taskSource.TrySetException(ADP.ExceptionWithStackTrace(exception)); 1380Debug.Assert(!ADP.IsEmpty(errorMessage),"Empty error message received from SNI"); 1386Debug.Assert(!ADP.IsEmpty(providerName), String.Format((IFormatProvider)null,"invalid providerResourceId '{0}'", providerRid)); 1607throw ADP.ParameterValueOutOfRange(v.ToString()); 1716throw ADP.ParameterValueOutOfRange(v.ToString()); 3118ADP.IsEmpty(_connHandler.InstanceName)) { 3706ADP.TraceExceptionWithoutRethrow(e); 3737ADP.TraceExceptionWithoutRethrow(e); 3746ADP.TraceExceptionWithoutRethrow(e); 3906if (ADP.IsEmpty(col.column)) { 4425if (ADP.IsEmpty(database)) { 4434if (ADP.IsEmpty(schema)) { 4443if (ADP.IsEmpty(type)) { 5015s = ADP.StrEmpty; 5249strValue = strValue.PadRight(md.baseTI.length / ADP.CharSize); 5820if (ADP.IsNull(value)) { 6555int cBytes = ADP.CharSize * length; 6563int cBytes = ADP.CharSize * length; 6582int cBytes = ADP.CharSize * length; 6590int cBytes = ADP.CharSize * length; 6614throw ADP.InvalidDataLength(charLength); 6618throw ADP.IndexOutOfRange(sourceOffset); 6622int byteLength = checked(charLength * ADP.CharSize); 6625throw ADP.IndexOutOfRange(destOffset); 6644throw ADP.InvalidDataLength(charLength); 6648throw ADP.IndexOutOfRange(sourceOffset); 6652int byteLength = checked(charLength * ADP.CharSize); 6655throw ADP.IndexOutOfRange(destOffset); 6718if (value == null || value == ADP.StrEmpty) { 6866if (!ADP.IsCatchableExceptionType(e)) { 6872ADP.TraceExceptionWithoutRethrow(e); 7306if (!ADP.IsEmpty(rec.newPassword) || (rec.newSecurePassword != null && rec.newSecurePassword.Length != 0)) { 7481if (ADP.IsCatchableExceptionType(e)) { 7577Debug.Assert(!ADP.IsEmpty(procedure), "TdsParser.SSPIError called with an empty or null procedure string"); 7578Debug.Assert(!ADP.IsEmpty(error), "TdsParser.SSPIError called with an empty or null error string"); 7872if (!ADP.IsCatchableExceptionType(e)) { 7969throw ADP.ClosedConnectionError(); 8029if (!ADP.IsCatchableExceptionType(e)) { 8076throw ADP.ClosedConnectionError(); 8112Debug.Assert(!ADP.IsEmpty(rpcext.rpcName), "must have an RPC name"); 8164throw ADP.VersionDoesNotSupportDataType(mt.TypeName); 8223throw ADP.ParameterValueOutOfRange((SqlDecimal)value); 8235throw ADP.ParameterValueOutOfRange((Decimal)value); 8393if (ADP.IsEmpty(param.UdtTypeName)) 8399if (!ADP.IsEmpty(names[0]) && TdsEnums.MAX_SERVERNAME < names[0].Length) { 8400throw ADP.ArgumentOutOfRange("names"); 8402if (!ADP.IsEmpty(names[1]) && TdsEnums.MAX_SERVERNAME < names[names.Length - 2].Length) { 8403throw ADP.ArgumentOutOfRange("names"); 8406throw ADP.ArgumentOutOfRange("names"); 8464if (((param.XmlSchemaCollectionDatabase != null) && (param.XmlSchemaCollectionDatabase != ADP.StrEmpty)) || 8465((param.XmlSchemaCollectionOwningSchema != null) && (param.XmlSchemaCollectionOwningSchema != ADP.StrEmpty)) || 8466((param.XmlSchemaCollectionName != null) && (param.XmlSchemaCollectionName != ADP.StrEmpty))) { 8469if ((param.XmlSchemaCollectionDatabase != null) && (param.XmlSchemaCollectionDatabase != ADP.StrEmpty)) { 8478if ((param.XmlSchemaCollectionOwningSchema != null) && (param.XmlSchemaCollectionOwningSchema != ADP.StrEmpty)) { 8486if ((param.XmlSchemaCollectionName != null) && (param.XmlSchemaCollectionName != ADP.StrEmpty)) { 8601if (!ADP.IsCatchableExceptionType(e)) { 8747if (!ADP.IsEmpty(parameterName)) { 8768throw ADP.VersionDoesNotSupportDataType(mt.TypeName); 8970if (ADP.IsEmpty(metaData.TypeSpecificNamePart1) && ADP.IsEmpty(metaData.TypeSpecificNamePart2) && 8971ADP.IsEmpty(metaData.TypeSpecificNamePart3)) { 9134throw ADP.ClosedConnectionError(); 9288throw ADP.ClosedConnectionError(); 9501throw ADP.ClosedConnectionError(); 9691throw ADP.ArgumentNull("CallbackId"); 9694throw ADP.ArgumentOutOfRange("CallbackId"); 9698throw ADP.ArgumentNull("Service"); 9701throw ADP.ArgumentOutOfRange("Service"); 9705throw ADP.ArgumentOutOfRange("Timeout"); 10235throw ADP.ArgumentNull(ADP.ParameterBuffer); 10238throw ADP.ArgumentOutOfRange(ADP.ParameterOffset); 10241throw ADP.ArgumentOutOfRange(ADP.ParameterCount); 10339throw ADP.ArgumentNull(ADP.ParameterBuffer); 10342throw ADP.ArgumentOutOfRange(ADP.ParameterOffset); 10345throw ADP.ArgumentOutOfRange(ADP.ParameterCount);
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (1)
154ADP.IsAzureSqlServerEndpoint(serverName));
fx\src\data\System\Data\SqlClient\TdsParserSessionPool.cs (1)
154throw ADP.ClosedConnectionError();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (20)
757timeout = ADP.TimerRemainingMilliseconds(timerExpire); 787if (!ADP.IsCatchableExceptionType(e)) { 790ADP.TraceExceptionWithoutRethrow(e); 1938throw ADP.ClosedConnectionError(); 1954throw ADP.ClosedConnectionError(); 1967Debug.Assert(ADP.PtrZero != readPacket, "ReadNetworkPacket cannot be null in syncronous operation!"); 2019taskSource.TrySetException(ADP.ExceptionWithStackTrace(ADP.ClosedConnectionError())); 2024taskSource.TrySetException(ADP.ExceptionWithStackTrace(ADP.ClosedConnectionError())); 2055if (!ADP.IsCatchableExceptionType(e)) { 2124throw ADP.ClosedConnectionError(); 2174throw ADP.ClosedConnectionError(); 2178Debug.Assert(ADP.PtrZero != readPacket, "ReadNetworkPacket should not have been null on this async operation!"); 2179ReadAsyncCallback(ADP.PtrZero, readPacket, 0); 2335throw ADP.ClosedConnectionError(); 2494processFinallyBlock = ADP.IsCatchableExceptionType(e); 2532throw ADP.ClosedConnectionError(); 2688throw ADP.ClosedConnectionError(); 2812throw ADP.ClosedConnectionError();
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (11)
36if (!ADP.IsEmpty(host)) { 39string aliasLookup = (string) ADP.LocalMachineRegistryValue(folder, host); 40if (!ADP.IsEmpty(aliasLookup)) { 146object temp = ADP.LocalMachineRegistryValue(folder, localKey); 152temp = ADP.LocalMachineRegistryValue(folder, key); 178long msecRemaining = ADP.TimerRemainingMilliseconds(timeoutTime); 201result = checked(ADP.TimerCurrent() + ADP.TimerFromMilliseconds(timeoutMilliseconds)); 216result = ADP.TimerHasExpired(timeoutTime); 234long remaining = ADP.TimerRemainingSeconds(start + ADP.TimerFromSeconds(timeout));
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (8)
253_stateObj.Parser.WriteInt(length*ADP.CharSize, _stateObj); 268_stateObj.Parser.WriteShort(length*ADP.CharSize, _stateObj); 336if (length * ADP.CharSize > TdsEnums.TYPE_SIZE_LIMIT) { // send as varchar for length greater than 4000 352_stateObj.Parser.WriteSqlVariantHeader(9 + length * ADP.CharSize, TdsEnums.SQLNVARCHAR, 7, _stateObj); 355_stateObj.Parser.WriteShort(length * ADP.CharSize, _stateObj); // propbyte: varlen 362_stateObj.Parser.WriteLong(length*ADP.CharSize, _stateObj); // PLP total length 363_stateObj.Parser.WriteInt(length*ADP.CharSize, _stateObj); // Chunk length 370_stateObj.Parser.WriteShort(length*ADP.CharSize, _stateObj);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (1)
386throw ADP.WrongType(value.GetType(), typeof(SqlBinary));
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (1)
519throw ADP.WrongType(value.GetType(), typeof(SqlBoolean));
fx\src\data\System\Data\SQLTypes\SQLByte.cs (1)
519throw ADP.WrongType(value.GetType(), typeof(SqlByte));
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (2)
710throw ADP.InvalidSeekOrigin("offset"); 804throw ADP.StreamClosed(methodname);
fx\src\data\System\Data\SQLTypes\SQLChars.cs (5)
678 throw ADP.ArgumentOutOfRange("offset"); 685 throw ADP.ArgumentOutOfRange("offset"); 692 throw ADP.ArgumentOutOfRange("offset"); 697throw ADP.ArgumentOutOfRange("offset");; 786throw ADP.StreamClosed(methodname);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
582throw ADP.WrongType(value.GetType(), typeof(SqlDateTime));
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (1)
3177throw ADP.WrongType(value.GetType(), typeof(SqlDecimal));
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (1)
439throw ADP.WrongType(value.GetType(), typeof(SqlDouble));
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (40)
80throw ADP.ArgumentNull("transactionContext"); 83throw ADP.ArgumentNull ( "path" ); 189throw ADP.ObjectDisposed ( this ); 201throw ADP.ObjectDisposed ( this ); 213throw ADP.ObjectDisposed ( this ); 224throw ADP.ObjectDisposed ( this ); 235throw ADP.ObjectDisposed ( this ); 246throw ADP.ObjectDisposed ( this ); 253throw ADP.ObjectDisposed ( this ); 265throw ADP.ObjectDisposed ( this ); 272throw ADP.ObjectDisposed ( this ); 284throw ADP.ObjectDisposed ( this ); 291throw ADP.ObjectDisposed ( this ); 300throw ADP.ObjectDisposed ( this ); 309throw ADP.ObjectDisposed ( this ); 317throw ADP.ObjectDisposed ( this ); 326throw ADP.ObjectDisposed ( this ); 348throw ADP.ObjectDisposed ( this ); 356throw ADP.ObjectDisposed ( this ); 364throw ADP.ObjectDisposed ( this ); 372throw ADP.ObjectDisposed ( this ); 380throw ADP.ObjectDisposed ( this ); 388throw ADP.ObjectDisposed ( this ); 409throw ADP.ObjectDisposed ( this ); 466throw ADP.Argument(Res.GetString(Res.SqlFileStream_InvalidPath), "path"); 474throw ADP.Argument(Res.GetString(Res.SqlFileStream_InvalidPath), "path"); 480throw ADP.Argument(Res.GetString(Res.SqlFileStream_InvalidPath), "path"); 486throw ADP.Argument(Res.GetString(Res.SqlFileStream_InvalidPath), "path"); 501throw ADP.Argument(Res.GetString(Res.SqlFileStream_PathNotValidDiskResource), "path"); 547ADP.TraceExceptionWithoutRethrow(e); 592throw ADP.ArgumentOutOfRange ("access"); 596throw ADP.ArgumentOutOfRange ( "options" ); 717throw ADP.InvalidOperation ( Res.GetString ( Res.SqlFileStream_FileAlreadyInTransaction ) ); 720throw ADP.Argument ( Res.GetString ( Res.SqlFileStream_InvalidParameter ) ); 725ADP.TraceExceptionAsReturnValue ( e ); 738ADP.TraceExceptionAsReturnValue ( e ); 746ADP.TraceExceptionAsReturnValue ( e ); 754throw ADP.Argument ( Res.GetString ( Res.SqlFileStream_PathNotValidDiskResource ) ); 770ADP.TraceExceptionAsReturnValue ( e ); 1038throw ADP.ArgumentOutOfRange ( "transactionContext" );
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (1)
315throw ADP.WrongType(value.GetType(), typeof(SqlGuid));
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (1)
528throw ADP.WrongType(value.GetType(), typeof(SqlInt16));
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (1)
540throw ADP.WrongType(value.GetType(), typeof(SqlInt32));
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (1)
594throw ADP.WrongType(value.GetType(), typeof(SqlInt64));
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
579throw ADP.WrongType(value.GetType(), typeof(SqlMoney));
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (1)
443throw ADP.WrongType(value.GetType(), typeof(SqlSingle));
fx\src\data\System\Data\SQLTypes\SQLString.cs (2)
754throw ADP.ArgumentOutOfRange("compareOptions"); 921throw ADP.WrongType(value.GetType(), typeof(SqlString));
fx\src\data\System\Data\SQLTypes\SqlXml.cs (2)
120if ((!throwTargetInvocationExceptions) || (!ADP.IsCatchableExceptionType(ex))) { 380 throw ADP.InvalidSeekOrigin("offset");
fx\src\data\System\Data\SQLTypes\UnsafeNativeMethods.cs (3)
100throw ADP.Argument(Res.GetString(Res.SqlFileStream_InvalidPath), "path"); 105ADP.TraceExceptionAsReturnValue(e); 206throw ADP.ArgumentOutOfRange ( "function" );
fx\src\data\System\Data\XDRSchema.cs (2)
467if (!ADP.IsCatchableExceptionType (e)) { 486if (!ADP.IsCatchableExceptionType (e)) {
fx\src\data\System\Data\XmlDataLoader.cs (2)
358if (XMLSchema.GetBooleanAttribute(rowElement, Keywords.XSI_NIL, Keywords.XSINS, false) && Common.ADP.IsEmpty(text) ) 386if (XMLSchema.GetBooleanAttribute(e, Keywords.XSI_NIL, Keywords.XSINS, false) && Common.ADP.IsEmpty(text) )
fx\src\data\System\Data\XMLDiffLoader.cs (1)
294if (!Common.ADP.IsEmpty(value)) {
fx\src\data\System\Data\xmlsaver.cs (17)
338if (!Common.ADP.IsEmpty(targetNamespace)) { 351if (!Common.ADP.IsEmpty(targetNamespace)) { 599if (((_ds != null )&& (_ds.Namespace == top[i].Namespace)) || Common.ADP.IsEmpty(top[i].Namespace) || (schFormat == SchemaFormat.Remoting)) { 602if (((_ds != null )&& (_ds.Namespace.Length != 0)) && Common.ADP.IsEmpty(top[i].Namespace)) { 630if ((_ds != null && _ds.Namespace == top[i].Namespace) || Common.ADP.IsEmpty(top[i].Namespace) || (schFormat == SchemaFormat.Remoting)) 695if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || Common.ADP.IsEmpty(ns)) { 721if (ns == ((_ds != null)?_ds.Namespace:_dt.Namespace) || Common.ADP.IsEmpty(ns)) { 930if (!Common.ADP.IsEmpty(this.filePath)) 1037if (!Common.ADP.IsEmpty(NamespaceURI)) { 1180if (Common.ADP.IsEmpty(tgNamespace)) { 1187if (!Common.ADP.IsEmpty(tgNamespace)) { 1487while (Common.ADP.IsEmpty(tgNamespace)) { 1566if (Common.ADP.IsEmpty(table.TypeName.Namespace)) { 1758if (!Common.ADP.IsEmpty(fields[k].Namespace)) { 1817if (!Common.ADP.IsEmpty(fields[k].Namespace)) { 1891if (!Common.ADP.IsEmpty(fields[k].Namespace)) { 1943if (Common.ADP.IsCatchableExceptionType(ex))
fx\src\data\System\Data\XMLSchema.cs (8)
1911if (Common.ADP.IsEmpty(strType)) { 1965if ((Common.ADP.IsEmpty(attrib.QualifiedName.Namespace) && Common.ADP.IsEmpty(column._columnUri)) || // backward compatability :SQL BU DT 310912 2053if (Common.ADP.IsEmpty(strType)) { 2097if (ADP.IsEmpty(XSDSchema.GetMsdataAttribute(elem, Keywords.MSD_DATATYPE))) { 2125if ((Common.ADP.IsEmpty(elem.QualifiedName.Namespace) && Common.ADP.IsEmpty(column._columnUri)) || // backward compatability :SQL BU DT 310912 2143if (!Common.ADP.IsEmpty(column.Expression)) {
fx\src\data\System\NewXml\XmlDataDocument.cs (3)
818if (!System.Data.Common.ADP.IsCatchableExceptionType (e)) { 1516if (!System.Data.Common.ADP.IsCatchableExceptionType (e)) { 2159if (!System.Data.Common.ADP.IsCatchableExceptionType (e)) {