MultipartFormDataContent.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈