///<summary> /// Adds arguments to the URL so that these can be processed by the targeted server. ///</summary> ///<param name="keyValueParameters">>A <see cref="T:System.Collection.IDictionary"/> object containing key/value pairs that will be ///added to the request Url.</param> ///<returns>A <see cref="DELETEContent"/> object encapsulating key/value pairs formatted for a DELETE request. </returns> public static DELETEContent CreateDELETEParameterList(IDictionary keyValueParameters) { GETContent content = GETContent.CreateGETParameterList(keyValueParameters); DELETEContent del = new DELETEContent(); del.stringContent = content.stringContent; return(del); }
/// <summary> /// Create an Http DELETE request. /// </summary> /// <param name="Url">The Url of the web server to which the request will be sent.</param> /// <param name="Content">The <see cref="DELETEContent"/> object to be sent to the Url.</param> /// <returns>An <see cref="HttpRequest"/> object that can be used to make DELETE request.</returns> public static HttpRequest CreateHttpDeleteRequest(string Url, DELETEContent Content) { return new HttpRequest(HttpRequest.RequestMethod.DELETE, Url, Content, null, null, null); }
/// <summary> /// Create an Http DELETE request. /// </summary> /// <param name="url">The Url of the web server to which the request will be sent.</param> /// <param name="content">The <see cref="DELETEContent"/> object to be sent to the Url.</param> /// <returns>An <see cref="HttpRequest"/> object that can be used to make DELETE request.</returns> public static HttpRequest CreateHttpDeleteRequest(string url, DELETEContent content) { return(new HttpRequest(HttpRequest.RequestMethod.DELETE, url, content, null, null, null)); }
///<summary> /// Adds arguments to the URL so that these can be processed by the targeted server. ///</summary> ///<param name="keyValueParameters">>A <see cref="T:System.Collection.IDictionary"/> object containing key/value pairs that will be ///added to the request Url.</param> ///<returns>A <see cref="DELETEContent"/> object encapsulating key/value pairs formatted for a DELETE request. </returns> public static DELETEContent CreateDELETEParameterList(IDictionary keyValueParameters) { GETContent content = GETContent.CreateGETParameterList(keyValueParameters); DELETEContent del = new DELETEContent(); del.stringContent = content.stringContent; return del; }