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