MultipartFormDataContent.Add メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。
Add(HttpContent) |
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。 |
Add(HttpContent, String) |
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。 |
Add(HttpContent, String, String) |
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。 |
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。
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)
パラメーター
- content
- HttpContent
コレクションに追加する HTTP コンテンツ。
例外
content
が null
でした。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。
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)
パラメーター
- content
- HttpContent
コレクションに追加する HTTP コンテンツ。
- name
- String
追加する HTTP コンテンツの名前。
例外
name
が null
であったか、または空白文字だけを含んでいます。
content
が null
でした。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
マルチパート/フォーム データの MIME の種類にシリアル化される HttpContent オブジェクトのコレクションに HTTP コンテンツを追加します。
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)
パラメーター
- content
- HttpContent
コレクションに追加する HTTP コンテンツ。
- name
- String
追加する HTTP コンテンツの名前。
- fileName
- String
コレクションに追加する HTTP コンテンツのファイル名。
例外
name
が null
であったか、または空白文字だけを含んでいます。
- または -
fileName
が null
であったか、または空白文字だけを含んでいます。
content
が null
でした。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。