Put() public static method

A general HTTP PUT method, with delegates for progress and cancelling. May throw various exceptions.
public static Put ( UpdateProgressDelegate progressDelegate, FuncBool cancellingDelegate, Uri uri, IWebProxy proxy, string path, int timeout_ms ) : void
progressDelegate UpdateProgressDelegate Delegate called periodically (500ms) with percent complete
cancellingDelegate FuncBool Delegate called periodically to see if need to cancel
uri System.Uri URI to PUT to
proxy IWebProxy A proxy to handle the HTTP connection
path string Path to file to put
timeout_ms int Timeout for the connection in ms. 0 for no timeout.
return void
コード例 #1
0
 private static void Put(HTTP.UpdateProgressDelegate progressDelegate, HTTP.FuncBool cancellingDelegate, int timeout_ms,
                         string hostname, string remotePath, IWebProxy proxy, string localPath, params object[] args)
 {
     HTTP.Put(progressDelegate, cancellingDelegate, HTTP.BuildUri(hostname, remotePath, args), proxy, localPath, timeout_ms);
 }