ResourceHandler.ForErrorMessage Method (original) (raw)

ResourceHandlerForErrorMessage Method

Version 118.6.80

Generates a ResourceHandler that has it's StatusCode set

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)

Syntax

public static IResourceHandler ForErrorMessage( string errorMessage, HttpStatusCode statusCode )

public: static IResourceHandler^ ForErrorMessage( String^ errorMessage, HttpStatusCode statusCode )

Parameters

errorMessage

Type: SystemString
Body the response to be displayed

statusCode

Type: System.NetHttpStatusCode
StatusCode

Return Value

Type: IResourceHandler
ResourceHandler

See Also

Reference