Determines whether this HttpStatus is ordered between the specified pair of HttpStatus objects.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
public bool IsInRange( HttpStatus from, HttpStatus to )
Parameters
- from
- Type: Facilita.Web HttpStatus
The start of the range.
- to
- Type: Facilita.Web HttpStatus
The end of the range.
Return Value
true if this HttpStatus is ordered between the specified pair of HttpStatus objects; otherwise, false.Remarks
Examples
if (response.Result.IsInRange(HttpStatus.BAD_REQUEST, HttpStatus.UNSUPPORTED_MEDIA)) { Error("A client error occurred"); }
See Also