25 references to GetHRForException
mscorlib (2)
system\runtime\interopservices\errorwrapper.cs (1)
43
m_ErrorCode = Marshal.
GetHRForException
(e);
system\runtime\interopservices\windowsruntime\iteratortoenumeratoradapter.cs (1)
192
if (Marshal.
GetHRForException
(e) == __HResults.E_CHANGED_STATE)
PresentationCore (4)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1621
return new IntPtr(Marshal.
GetHRForException
(e));
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
131
return Marshal.
GetHRForException
(e);
Shared\MS\Internal\SecurityHelper.cs (2)
961
int hr = Marshal.
GetHRForException
(exception);
965
Marshal.
GetHRForException
(new Exception());
System (3)
compmod\system\codedom\compiler\TempFiles.cs (1)
228
if (retryCount == 0 || Marshal.
GetHRForException
(e) != HR_ERROR_FILE_EXISTS)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1204
throw new Win32Exception(Marshal.
GetHRForException
(e));
1238
error = Marshal.
GetHRForException
(e);
System.AddIn (2)
System\Addin\Hosting\AddInStore.cs (2)
1051
if ((uint) System.Runtime.InteropServices.Marshal.
GetHRForException
(e) !=
1114
if ((uint) System.Runtime.InteropServices.Marshal.
GetHRForException
(e) !=
System.Core (1)
System\Security\Cryptography\Xml\ManifestSignedXml.cs (1)
252
timestamp = new TimestampInformation((SignatureVerificationResult)Marshal.
GetHRForException
(e));
System.IO.Log (1)
System\IO\Log\LogManagementAsyncResult.cs (1)
278
int errorCode = Marshal.
GetHRForException
(e);
System.ServiceModel (6)
System\ServiceModel\ComIntegration\DispatchProxy.cs (2)
285
exceptionInfo.scode = Marshal.
GetHRForException
(e);
341
return Marshal.
GetHRForException
(e);
System\ServiceModel\ComIntegration\ProxyManager.cs (2)
114
return Marshal.
GetHRForException
(e);
186
exceptionInfo.scode = Marshal.
GetHRForException
(e);
System\ServiceModel\ComIntegration\TearOffProxy.cs (2)
45
return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(e.GetBaseException().Message, Marshal.
GetHRForException
(e.GetBaseException()))), msg);
61
return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(returnMsg.Exception.GetBaseException().Message, Marshal.
GetHRForException
(returnMsg.Exception.GetBaseException()))), msg);
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\MsmqIntegrationProcessProtocolHandler.cs (1)
25
listenerChannelCallback.ReportStopped(Marshal.
GetHRForException
(ex));
System\ServiceModel\WasHosting\MsmqProcessProtocolHandler.cs (1)
25
listenerChannelCallback.ReportStopped(System.Runtime.InteropServices.Marshal.
GetHRForException
(ex));
System.Web (2)
Configuration\CompilationSection.cs (1)
777
int hresult = System.Runtime.InteropServices.Marshal.
GetHRForException
(e);
Hosting\IPipelineRuntime.cs (1)
434
return Marshal.
GetHRForException
(e);
WindowsBase (2)
Shared\MS\Internal\SecurityHelper.cs (2)
961
int hr = Marshal.
GetHRForException
(exception);
965
Marshal.
GetHRForException
(new Exception());