Class NetWorkRequestEventArgs

Contains information about a Web request that is ready to be sent to the current Sys.Net.WebRequestExecutor instance. This class represents the type for the second parameter of the callback function added by the add_invokingRequest method. The callback function is called before the Web request is routed to the current instance of the WebRequestExecutor class.

see

{@link http://msdn.microsoft.com/en-us/library/bb397488(v=vs.100).aspx}

Index

Constructor methods

Methods

Constructor methods

constructor(value: WebRequest): NetWorkRequestEventArgs

Initializes a new instance of the Sys.Net.NetworkRequestEventArgs. class.

Parameters

  • value: WebRequest
     The current WebRequest instance.
    

Returns

NetWorkRequestEventArgs

Methods

public get_webRequest(): WebRequest

Gets the Web request to be routed to the current Sys.Net.WebRequestExecutor instance. Use this property to inspect the contents of a Web request before it is routed to the current instance of the Sys.Net.WebRequestExecutor class. You can access the Web request instance from the handler that is called before the request is routed. This event handler is added by using the add_invokingRequest method.

Returns

WebRequest

 The WebRequest.