C# Class csExWB.CustomDownloadRequestEventArgs

Inheritance: System.EventArgs
显示文件 Open project: mcorrientes/Web-Security-Toolset Class Usage Examples

Public Methods

Method Description
CancelDownloadRequest ( int Inet_Error_Code ) : void

Call this method to cancel a download request from the CExWb browser control.

Method can be invoked either on the same thread as the ProtocolHandlerOnStart event was raised on, or on a backgroud thread. This method can only be invoked once.

CustomDownloadRequestEventArgs ( string protocol, string url, object browser, object sink ) : System
DownloadCompleted ( byte data, string redirectedUrl, string mimeType ) : void

Call this method to transfer the downloaded data and finish the download request. Call can either happen on the same thread as the ProtocolHandlerOnStart event was raised on, or on a backgroud thread. This method can only be invoked once.

Method can be invoked either on the same thread as the ProtocolHandlerOnStart event was raised on, or on a backgroud thread. This method can only be invoked once.

Method Details

CancelDownloadRequest() public method

Call this method to cancel a download request from the CExWb browser control.
Method can be invoked either on the same thread as the ProtocolHandlerOnStart event was raised on, or on a backgroud thread. This method can only be invoked once.
public CancelDownloadRequest ( int Inet_Error_Code ) : void
Inet_Error_Code int
return void

CustomDownloadRequestEventArgs() public method

public CustomDownloadRequestEventArgs ( string protocol, string url, object browser, object sink ) : System
protocol string
url string
browser object
sink object
return System

DownloadCompleted() public method

Call this method to transfer the downloaded data and finish the download request. Call can either happen on the same thread as the ProtocolHandlerOnStart event was raised on, or on a backgroud thread. This method can only be invoked once.
Method can be invoked either on the same thread as the ProtocolHandlerOnStart event was raised on, or on a backgroud thread. This method can only be invoked once.
public DownloadCompleted ( byte data, string redirectedUrl, string mimeType ) : void
data byte Downloaded data (payload)
redirectedUrl string Url of downloaded data, use to signal redirected downloads
mimeType string Mime type reported by server, leave blank if none
return void