Skip to content

SendingWebRequestEventArgs

Namespace: ThinkGeo.Core

Provides data for the event that fires before a web request is sent by a layer or overlay.

public class SendingWebRequestEventArgs : System.EventArgs

Inheritance objectEventArgsSendingWebRequestEventArgs

Remarks:

This type exists for backward compatibility with legacy HTTP stacks. Prefer SendingHttpRequestMessageEventArgs for newer implementations.

Properties

WebRequest

Gets or sets the SendingWebRequestEventArgs.WebRequest that can be inspected or replaced before submission.

public WebRequest WebRequest { get; set; }

Property Value

WebRequest

Cancel

Gets or sets a value indicating whether the web request should be canceled.

public bool Cancel { get; set; }

Property Value

bool

Constructors

SendingWebRequestEventArgs()

Initializes a new instance of the SendingWebRequestEventArgs class.

public SendingWebRequestEventArgs()

SendingWebRequestEventArgs(WebRequest)

Initializes a new instance of the SendingWebRequestEventArgs class with the supplied request.

public SendingWebRequestEventArgs(WebRequest webRequest)

Parameters

webRequest WebRequest
The that is about to be sent.

SendingWebRequestEventArgs(WebRequest, bool)

Initializes a new instance of the SendingWebRequestEventArgs class with the supplied request and cancel flag.

public SendingWebRequestEventArgs(WebRequest webRequest, bool cancel)

Parameters

webRequest WebRequest
The that is about to be sent.

cancel bool
A value indicating whether the request should be canceled.