19 references to GetHRForException
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
142
&& Marshal.
GetHRForException
(ie) == ToolInputException.COR_E_ASSEMBLYEXPECTED)
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
228
if (retryCount == 0 || Marshal.
GetHRForException
(e) != HR_ERROR_FILE_EXISTS)
Microsoft.Maui.Resizetizer (1)
SkiaSharpTools.cs (1)
223
var code = Marshal.
GetHRForException
(ex);
PresentationCore (5)
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
76
hr = Marshal.
GetHRForException
(exception);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (2)
150
int hr = Marshal.
GetHRForException
(exception);
154
Marshal.
GetHRForException
(new Exception());
System\Windows\InterOp\HwndTarget.cs (1)
1462
return new IntPtr(Marshal.
GetHRForException
(e));
System\Windows\Media\EventProxy.cs (1)
93
return Marshal.
GetHRForException
(e);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
301
if (Marshal.
GetHRForException
(e) == ExceptionHelpers.E_CHANGED_STATE)
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ErrorWrapper.cs (1)
26
ErrorCode = Marshal.
GetHRForException
(e);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ReferenceTrackerHost.cs (5)
44
return Marshal.
GetHRForException
(e);
71
return Marshal.
GetHRForException
(e);
98
return Marshal.
GetHRForException
(e);
114
return Marshal.
GetHRForException
(e);
130
return Marshal.
GetHRForException
(e);
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\Marshalling\ExceptionAsDefaultMarshaller.cs (1)
23
_ = Marshal.
GetHRForException
(e);
System\Runtime\InteropServices\Marshalling\ExceptionAsHResultMarshaller.cs (1)
38
return T.CreateTruncating(Marshal.
GetHRForException
(e));
System\Runtime\InteropServices\Marshalling\ExceptionAsNaNMarshaller.cs (1)
25
_ = Marshal.
GetHRForException
(e);
System\Runtime\InteropServices\Marshalling\ExceptionAsVoidMarshaller.cs (1)
25
_ = Marshal.
GetHRForException
(e);