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