C# Class Nohal.Redmine.MultipartData

Helper class for constructing the multipart/form-data POST requests
ファイルを表示 Open project: bdrhoa/redmine-client Class Usage Examples

Public Methods

Method Description
AddFile ( string name, string fileName ) : void

Adds a file to the post request

AddValue ( string name, string value ) : void

Adds new form field name/value pair

Private Methods

Method Description
Finish ( ) : void

Finishes the creation of the request

Method Details

AddFile() public method

Adds a file to the post request
public AddFile ( string name, string fileName ) : void
name string The name of the field
fileName string The file path
return void

AddValue() public method

Adds new form field name/value pair
public AddValue ( string name, string value ) : void
name string The name of the field
value string Tha value of the field
return void