Επεξεργασία

Κοινή χρήση μέσω


MultipartFormDataContent.Add Method

Definition

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

Overloads

Add(HttpContent)

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

Add(HttpContent, String)

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

Add(HttpContent, String, String)

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

Add(HttpContent)

Source:
MultipartFormDataContent.cs
Source:
MultipartFormDataContent.cs
Source:
MultipartFormDataContent.cs

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

public:
 override void Add(System::Net::Http::HttpContent ^ content);
public override void Add (System.Net.Http.HttpContent content);
override this.Add : System.Net.Http.HttpContent -> unit
Public Overrides Sub Add (content As HttpContent)

Parameters

content
HttpContent

The HTTP content to add to the collection.

Exceptions

The content was null.

Applies to

Add(HttpContent, String)

Source:
MultipartFormDataContent.cs
Source:
MultipartFormDataContent.cs
Source:
MultipartFormDataContent.cs

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

public:
 void Add(System::Net::Http::HttpContent ^ content, System::String ^ name);
public void Add (System.Net.Http.HttpContent content, string name);
override this.Add : System.Net.Http.HttpContent * string -> unit
Public Sub Add (content As HttpContent, name As String)

Parameters

content
HttpContent

The HTTP content to add to the collection.

name
String

The name for the HTTP content to add.

Exceptions

The name was null or contains only white space characters.

The content was null.

Applies to

Add(HttpContent, String, String)

Source:
MultipartFormDataContent.cs
Source:
MultipartFormDataContent.cs
Source:
MultipartFormDataContent.cs

Add HTTP content to a collection of HttpContent objects that get serialized to multipart/form-data MIME type.

public:
 void Add(System::Net::Http::HttpContent ^ content, System::String ^ name, System::String ^ fileName);
public void Add (System.Net.Http.HttpContent content, string name, string fileName);
override this.Add : System.Net.Http.HttpContent * string * string -> unit
Public Sub Add (content As HttpContent, name As String, fileName As String)

Parameters

content
HttpContent

The HTTP content to add to the collection.

name
String

The name for the HTTP content to add.

fileName
String

The file name for the HTTP content to add to the collection.

Exceptions

The name was null or contains only white space characters.

-or-

The fileName was null or contains only white space characters.

The content was null.

Applies to