61 references to GetExceptionFromErrorCode
System.DirectoryServices (61)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (3)
204throw ExceptionHelper.GetExceptionFromErrorCode(result); 1312throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1356throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (2)
328throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 1173throw ExceptionHelper.GetExceptionFromErrorCode(errorCode);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (12)
218throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 235throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 267throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 284throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 315throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 329throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 473throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 610throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError((result != 0) ? result : protocolStatus)); 628throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(result)); 666throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 671throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 689throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (6)
288throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 312throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 336throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 639throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 684throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 722throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\DomainController.cs (6)
990throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 1025throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 1063throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1147throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1235throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1274throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\Forest.cs (2)
855throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 891throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\ForestTrustDomainInformation.cs (1)
33throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (1)
187throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (2)
371throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 392throw ExceptionHelper.GetExceptionFromErrorCode(errorCode);
System\DirectoryServices\ActiveDirectory\Locator.cs (4)
103throw ExceptionHelper.GetExceptionFromErrorCode(errorCode); 150throw ExceptionHelper.GetExceptionFromErrorCode(result); 185throw ExceptionHelper.GetExceptionFromErrorCode(result); 196throw ExceptionHelper.GetExceptionFromErrorCode(result);
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (4)
383throw ExceptionHelper.GetExceptionFromErrorCode(result); 389throw ExceptionHelper.GetExceptionFromErrorCode(result); 401throw ExceptionHelper.GetExceptionFromErrorCode(win32Error); 411throw ExceptionHelper.GetExceptionFromErrorCode(win32Error);
System\DirectoryServices\ActiveDirectory\Utils.cs (18)
119throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 146throw ExceptionHelper.GetExceptionFromErrorCode(result); 174throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 187throw ExceptionHelper.GetExceptionFromErrorCode(result); 214throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 249throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 262throw ExceptionHelper.GetExceptionFromErrorCode(result); 643throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 655throw ExceptionHelper.GetExceptionFromErrorCode(result); 672throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 694throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 721throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 966throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 974throw ExceptionHelper.GetExceptionFromErrorCode(result); 990throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 996throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1009throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1866throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());