37 references to GetExceptionForHR
Microsoft.AspNetCore.Server.IIS (2)
Core\IO\AsyncIOOperation.cs (1)
104_exception = new ConnectionResetException("The client has disconnected", Marshal.GetExceptionForHR(hr)!);
NativeMethods.cs (1)
358throw Marshal.GetExceptionForHR(hr)!;
Microsoft.Build (1)
CommunicationsUtilities.cs (1)
283throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error());
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1132errorMessage = symbolicLinkCreated ? null : Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()).Message;
Microsoft.Build.Tasks.Core (1)
NativeMethods.cs (1)
810errorMessage = hardLinkCreated ? null : Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()).Message;
Microsoft.Build.Tasks.UnitTests (2)
Copy_Tests.cs (2)
2614Marshal.GetExceptionForHR(errorCode); 2719Marshal.GetExceptionForHR(errorCode);
Microsoft.CodeAnalysis.Scripting (8)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
151Exception e = Marshal.GetExceptionForHR(hr);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (5)
142throw Marshal.GetExceptionForHR(hr); 151throw Marshal.GetExceptionForHR(hr); 171throw Marshal.GetExceptionForHR(hr); 180throw Marshal.GetExceptionForHR(hr); 293throw Marshal.GetExceptionForHR(hr);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
53throw Marshal.GetExceptionForHR(hr); 62throw Marshal.GetExceptionForHR(hr);
Microsoft.CodeAnalysis.UnitTests (5)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (5)
142throw Marshal.GetExceptionForHR(hr); 151throw Marshal.GetExceptionForHR(hr); 171throw Marshal.GetExceptionForHR(hr); 180throw Marshal.GetExceptionForHR(hr); 293throw Marshal.GetExceptionForHR(hr);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
53throw Marshal.GetExceptionForHR(hr); 62throw Marshal.GetExceptionForHR(hr);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\NativeMethods.cs (1)
37errorMessage = hardLinkCreated ? null : Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()).Message;
Microsoft.VisualStudio.LanguageServices (3)
KeybindingReset\KeybindingResetDetector.cs (1)
327FatalError.ReportAndCatch(Marshal.GetExceptionForHR(hr));
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (2)
53throw Marshal.GetExceptionForHR(hr); 62throw Marshal.GetExceptionForHR(hr);
MSBuildTaskHost (2)
CommunicationsUtilities.cs (1)
283throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error());
NativeMethods.cs (1)
1132errorMessage = symbolicLinkCreated ? null : Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()).Message;
PresentationCore (1)
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
55System.Exception e = System.Runtime.InteropServices.Marshal.GetExceptionForHR(hr);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
856throw GetExceptionForHR(errorCode)!;
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
651Exception? ex = Marshal.GetExceptionForHR(hr);
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (2)
9471throw Marshal.GetExceptionForHR((int)hr)!; 9480throw Marshal.GetExceptionForHR((int)hr)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
179throw Marshal.GetExceptionForHR((int)hr)!;
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
314throw Marshal.GetExceptionForHR((int)hr)!;
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ControlTestBase.cs (2)
202throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()); 213throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error());