78 references to ThrowExceptionForHR
ComSvcConfig (1)
SafeNativeMethods.cs (1)
355
Marshal.
ThrowExceptionForHR
(hr);
mscorlib (9)
microsoft\win32\fusionwrap.cs (3)
130
Marshal.
ThrowExceptionForHR
(hr);
135
Marshal.
ThrowExceptionForHR
(hr);
143
Marshal.
ThrowExceptionForHR
(hr);
system\environment.cs (4)
495
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
504
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
525
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
534
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
system\runtime\interopservices\marshal.cs (1)
1213
ThrowExceptionForHR
(GetHRForLastWin32Error());
system\runtime\interopservices\windowsruntime\winrtclassactivator.cs (1)
36
Marshal.
ThrowExceptionForHR
(hr);
PresentationCore (8)
Core\CSharp\System\Windows\Clipboard.cs (3)
82
Marshal.
ThrowExceptionForHR
(hr);
592
Marshal.
ThrowExceptionForHR
(hr);
782
Marshal.
ThrowExceptionForHR
(hr);
Core\CSharp\System\Windows\DataObject.cs (4)
873
Marshal.
ThrowExceptionForHR
(hr);
893
Marshal.
ThrowExceptionForHR
(DV_E_TYMED);
899
Marshal.
ThrowExceptionForHR
(hr);
1195
Marshal.
ThrowExceptionForHR
(hr);
Shared\MS\Win32\WinInet.cs (1)
48
Marshal.
ThrowExceptionForHR
(hr);
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (2)
90
Marshal.
ThrowExceptionForHR
(OleCmdHelper.OLECMDERR_E_UNKNOWNGROUP);
148
Marshal.
ThrowExceptionForHR
(hresult);
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1510
Marshal.
ThrowExceptionForHR
(hr);
System (1)
services\monitoring\system\diagnosticts\processwaithandle.cs (1)
25
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
System.Configuration (3)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (2)
110
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
177
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
System\Configuration\RSAProtectedConfigurationProvider.cs (1)
212
Marshal.
ThrowExceptionForHR
(hr);
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (2)
1360
Marshal.
ThrowExceptionForHR
(waitForMultipleObjectsExHR);
1392
Marshal.
ThrowExceptionForHR
(releaseSemaphoreResult); // will only throw if (hresult < 0)
fx\src\data\System\Data\ProviderBase\DbConnectionPoolIdentity.cs (1)
205
Marshal.
ThrowExceptionForHR
(lastError); // will only throw if (hresult < 0)
System.Web (24)
Configuration\MachineKeySection.cs (3)
667
Marshal.
ThrowExceptionForHR
(hr);
695
Marshal.
ThrowExceptionForHR
(hr);
1227
Marshal.
ThrowExceptionForHR
(hr);
Configuration\RemoteWebConfigurationHost.cs (6)
525
Marshal.
ThrowExceptionForHR
(hr);
527
Marshal.
ThrowExceptionForHR
(amqi[0].hr);
530
Marshal.
ThrowExceptionForHR
(hr);
585
Marshal.
ThrowExceptionForHR
(hr);
587
Marshal.
ThrowExceptionForHR
(amqi[0].hr);
590
Marshal.
ThrowExceptionForHR
(hr);
Configuration\RemoteWebConfigurationHostServer.cs (1)
139
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
Hosting\IIS7WorkerRequest.cs (2)
685
Marshal.
ThrowExceptionForHR
(hr);
872
Marshal.
ThrowExceptionForHR
(hr);
Hosting\ISAPIWorkerRequest.cs (1)
2221
Marshal.
ThrowExceptionForHR
(hresult);
Hosting\ProcessHost.cs (3)
1236
Marshal.
ThrowExceptionForHR
(hr);
1307
Marshal.
ThrowExceptionForHR
(hr);
1354
Marshal.
ThrowExceptionForHR
(hresult);
Management\regiisutil.cs (3)
342
Marshal.
ThrowExceptionForHR
((int)returnHR);
404
Marshal.
ThrowExceptionForHR
(returnHR);
427
Marshal.
ThrowExceptionForHR
((int)returnHR);
MimeMapping.cs (2)
463
Marshal.
ThrowExceptionForHR
(result);
475
Marshal.
ThrowExceptionForHR
(result);
Util\Misc.cs (2)
110
Marshal.
ThrowExceptionForHR
(hresult);
132
Marshal.
ThrowExceptionForHR
(hresult);
Util\StopListeningWaitHandle.cs (1)
40
Marshal.
ThrowExceptionForHR
(hr);
System.Windows.Forms (8)
winforms\Managed\System\WinForms\Control.cs (1)
18980
Marshal.
ThrowExceptionForHR
(hr);
winforms\Managed\System\WinForms\DataObject.cs (6)
606
Marshal.
ThrowExceptionForHR
(hr);
633
Marshal.
ThrowExceptionForHR
(DV_E_TYMED);
637
Marshal.
ThrowExceptionForHR
(DV_E_FORMATETC);
641
Marshal.
ThrowExceptionForHR
(DV_E_TYMED);
678
Marshal.
ThrowExceptionForHR
(NativeMethods.E_NOTIMPL);
783
Marshal.
ThrowExceptionForHR
(DV_E_TYMED);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
7541
Marshal.
ThrowExceptionForHR
(errorCode);
System.Workflow.Activities (1)
Common\NativeMethods.cs (1)
220
Marshal.
ThrowExceptionForHR
(hr);
System.Workflow.ComponentModel (1)
Shared\NativeMethods.cs (1)
234
Marshal.
ThrowExceptionForHR
(hr);
System.Workflow.Runtime (10)
DebugEngine\DebugController.cs (10)
104
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
135
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
147
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
160
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
164
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
180
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
191
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
206
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
212
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
216
Marshal.
ThrowExceptionForHR
(Marshal.GetHRForLastWin32Error());
UIAutomationClient (2)
MS\Internal\Automation\UiaCoreAPI.cs (2)
1158
Marshal.
ThrowExceptionForHR
(hr);
1217
Marshal.
ThrowExceptionForHR
(hr);
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1260
Marshal.
ThrowExceptionForHR
(hr);
WindowsBase (3)
Base\MS\Internal\Security\RightsManagement\Errors.cs (1)
80
Marshal.
ThrowExceptionForHR
(hr);
Shared\MS\Win32\SafeNativeMethodsCLR.cs (1)
600
Marshal.
ThrowExceptionForHR
(hr);
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
4102
Marshal.
ThrowExceptionForHR
(hr);