MultipartFormDataContent Class

MultipartFormDataContent class

Represent content for multipart/form-data encoding algorithm

public class MultipartFormDataContent : MultipartContent

Constructors

NameDescription
MultipartFormDataContent()Initializes a new instance of the MultipartFormDataContent class.
MultipartFormDataContent(String)Initializes a new instance of the MultipartFormDataContent class.

Properties

NameDescription
getHeaders Gets the HTTP content headers.

Methods

NameDescription
add(Content)Add the content to the MultipartFormDataContent class
add(Content, String)Add the content to the MultipartFormDataContent class with field name parameter
add(Content, String, String)Add the content to the MultipartFormDataContent class with field and file name parameter
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
getEnumerator()Returns an enumerator that iterates through a collection.
readAsByteArray()Serialize the HTTP content and return a byte array that represents the content.
readAsStream()Serialize the HTTP content and return a stream that represents the content.
readAsString()Serialize the HTTP content and return a String that represents the content.

See Also