4.5Adding a Single Form Item
Created on Aug 17, 2026~1 min read
Adds an independent item to the multipart form content, i.e., adds a single form property.
HttpRequestBuilder.Post("https://furion.net") .SetMultipartContent(multipart => { multipart.AddFormItem(1, "id"); // Will be assigned to the Id property of FormClass multipart.AddFormItem("Furion", "name"); // Will be assigned to the Name property of FormClass });The above code corresponds to the class definition received on the server side, for example:
public class FormClass{ public int Id { get; set; } public string Name { get; set; } // Other properties}