26 references to SNI_SUCCESS
System.Data (26)
fx\src\data\System\Data\SqlClient\TdsParser.cs (11)
416
if (sniStatus != TdsEnums.
SNI_SUCCESS
) {
473
if (TdsEnums.
SNI_SUCCESS
!= _physicalStateObj.Status) {
507
Debug.Assert(result == TdsEnums.
SNI_SUCCESS
, "Unexpected failure state upon calling SniGetConnectionId");
530
if (TdsEnums.
SNI_SUCCESS
!= _physicalStateObj.Status) {
537
Debug.Assert(retCode == TdsEnums.
SNI_SUCCESS
, "Unexpected failure state upon calling SniGetConnectionId");
582
if (error != TdsEnums.
SNI_SUCCESS
) {
604
if (error != TdsEnums.
SNI_SUCCESS
) {
628
Debug.Assert(TdsEnums.
SNI_SUCCESS
!= error, "Unexpected successfull read async on physical connection before enabling MARS!");
1002
if (error != TdsEnums.
SNI_SUCCESS
) {
1012
if (error != TdsEnums.
SNI_SUCCESS
)
2436
Debug.Assert(result == TdsEnums.
SNI_SUCCESS
, "Unexpected failure state upon calling SNISetInfo");
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (2)
43
if (TdsEnums.
SNI_SUCCESS
== _sniStatus) {
62
if (TdsEnums.
SNI_SUCCESS
== _sniStatus) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (13)
300
if (_sessionHandle.Status != TdsEnums.
SNI_SUCCESS
) {
659
if (callbackType == CallbackType.Read && TdsEnums.
SNI_SUCCESS
== error) {
670
if (TdsEnums.
SNI_SUCCESS
!= error) {
1966
if (TdsEnums.
SNI_SUCCESS
== error) { // Success - process results!
2165
if (!(TdsEnums.
SNI_SUCCESS
== error || TdsEnums.SNI_SUCCESS_IO_PENDING == error)) {
2177
if (TdsEnums.
SNI_SUCCESS
== error) { // Success - process results!
2249
if ((error != TdsEnums.
SNI_SUCCESS
) && (error != TdsEnums.SNI_WAIT_TIMEOUT)) {
2291
UInt32 error=TdsEnums.
SNI_SUCCESS
;
2303
return (error == TdsEnums.
SNI_SUCCESS
) || (error == TdsEnums.SNI_WAIT_TIMEOUT);
2343
if (TdsEnums.
SNI_SUCCESS
== error) {
2411
if (getDataError == TdsEnums.
SNI_SUCCESS
) {
2562
if (sniError != TdsEnums.
SNI_SUCCESS
) {
2978
if (sniError == TdsEnums.
SNI_SUCCESS
) {