Skip to content

Add Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Overloads ​

NameDescription
void Add(string key, FilePost file)Adds a file to the collection under the specified key. Overwrites any existing value for that key.
void Add(string key, string value)Adds a string value to the collection under the specified key. If the key already exists, the value is appended to the existing list.

void Add(string key, FilePost file) ​

csharp
void Add(string key, FilePost file)

Adds a file to the collection under the specified key. Overwrites any existing value for that key.

Parameters ​

NameDescription
fileThe file to add to the collection.
keyThe form field name.

void Add(string key, string value) ​

csharp
void Add(string key, string value)

Adds a string value to the collection under the specified key. If the key already exists, the value is appended to the existing list.

Parameters ​

NameDescription
keyThe form field name.
valueThe string value to add.