65 references to HResults
System.Web (65)
FileChangesMonitor.cs (31)
180if (hr != HResults.E_INSUFFICIENT_BUFFER) { 447if (hr != HResults.S_OK) { 666if (hr == HResults.S_OK) { 671throw FileChangesMonitor.CreateFileMonitoringException(HResults.E_INVALIDARG, path); 681else if (hr == HResults.E_PATHNOTFOUND || hr == HResults.E_FILENOTFOUND) { 691throw FileChangesMonitor.CreateFileMonitoringException(HResults.E_INVALIDARG, path); 1080if (hr == HResults.S_OK) { 1451case HResults.E_FILENOTFOUND: 1452case HResults.E_PATHNOTFOUND: 1456case HResults.E_ACCESSDENIED: 1461case HResults.E_INVALIDARG: 1465case HResults.ERROR_TOO_MANY_CMDS: 1494throw CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 1599if (hr != HResults.S_OK || (fad.FileAttributes & FileAttributes.Directory) == 0) { 1616if (hr == HResults.S_OK && (fad.FileAttributes & FileAttributes.Directory) == 0) { 1618hr = HResults.E_INVALIDARG; 1621if (hr != HResults.S_OK) { 1636if (hr == HResults.S_OK && (fad.FileAttributes & FileAttributes.Directory) == 0) { 1637hr = HResults.E_INVALIDARG; 1640if (hr == HResults.S_OK) { 1679throw CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 1686if (hr == HResults.S_OK) { 1712throw CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 1730throw CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 1781if (hr == HResults.S_OK) { 1860throw CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 2213throw FileChangesMonitor.CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 2218throw FileChangesMonitor.CreateFileMonitoringException(HResults.E_INVALIDARG, alias); 2224if (hr == HResults.S_OK) { 2244throw FileChangesMonitor.CreateFileMonitoringException(HResults.E_INVALIDARG, alias);
Hosting\HostingEnvironment.cs (4)
1934case HResults.S_FALSE: 1938case HResults.E_INVALIDARG: 1961case HResults.S_FALSE: 1965case HResults.E_INVALIDARG:
Hosting\IIS7WorkerRequest.cs (10)
553ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true); 610ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true); 639ar.Complete(bytesRead, HResults.S_OK, ppAsyncReceiveBuffer, synchronous: true); 1138if (result == HResults.E_NOTIMPL) { 1721if (result == HResults.E_INSUFFICIENT_BUFFER) { 1747if (result == HResults.E_INVALID_DATA) { 1907if (result != HResults.E_INSUFFICIENT_BUFFER) { 2399if (result == HResults.ERROR_NOT_SUPPORTED) { 2571int hr = HResults.S_OK; 2574if (hr == HResults.E_NOTIMPL)
Hosting\IPipelineRuntime.cs (1)
437return HResults.S_OK;
Hosting\ISAPIWorkerRequest.cs (5)
2019int hr = HResults.S_OK; 2022if (hr == HResults.E_NOTIMPL) 2442if (rc == HResults.WSAECONNABORTED || rc == HResults.WSAECONNRESET) { 2611ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true);
Hosting\ProcessHost.cs (3)
1001HResults.E_FAIL, 1103HResults.E_FAIL, 1121HResults.E_FAIL,
HttpResponse.cs (1)
751ar.Complete(0, HResults.S_OK, IntPtr.Zero, synchronous: true);
Security\PassportIdentity.cs (2)
1108if (iRet != HResults.E_INSUFFICIENT_BUFFER && iRet < 0) 1111while ( iRet == HResults.E_INSUFFICIENT_BUFFER &&
Util\FileUtil.cs (7)
372if (!(hr == HResults.E_FILENOTFOUND || hr == HResults.E_PATHNOTFOUND)) { 405if (hr == HResults.E_FILENOTFOUND || hr == HResults.E_PATHNOTFOUND) { 461return HResults.S_OK; 477if (hr != HResults.S_OK || String.IsNullOrEmpty(rootDirectoryPath)) { 591return HResults.S_OK;
WebSockets\WebSocketPipe.cs (1)
195if (hr == HResults.E_NOT_SET) {