C# Class HttpServer.HttpForm

Container for posted form data
Inheritance: HttpInput
Datei anzeigen Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Properties

Property Type Description
EmptyForm HttpForm

Public Methods

Method Description
AddFile ( HttpServer.HttpFile file ) : void

Adds a file to the collection of posted files

Clear ( ) : void

Disposes all held HttpFile's and resets values

ContainsFile ( string name ) : bool

Checks if the form contains a specified file

GetFile ( string name ) : HttpServer.HttpFile

Retrieves a file held by by the form

HttpForm ( ) : System

Initializes a form container with the specified name

HttpForm ( HttpInput input ) : System

Makes a deep copy of the input

Private Methods

Method Description
HttpForm ( string name, bool ignoreChanges ) : System

Method Details

AddFile() public method

Adds a file to the collection of posted files
If the file is already added If file is null If the instance is HttpForm.EmptyForm which cannot be modified
public AddFile ( HttpServer.HttpFile file ) : void
file HttpServer.HttpFile The file to add
return void

Clear() public method

Disposes all held HttpFile's and resets values
public Clear ( ) : void
return void

ContainsFile() public method

Checks if the form contains a specified file
If the instance is HttpForm.EmptyForm which cannot be modified
public ContainsFile ( string name ) : bool
name string Field name of the file parameter
return bool

GetFile() public method

Retrieves a file held by by the form
If name is null or empty If the instance is HttpForm.EmptyForm which cannot be modified
public GetFile ( string name ) : HttpServer.HttpFile
name string The identifier of the file
return HttpServer.HttpFile

HttpForm() public method

Initializes a form container with the specified name
public HttpForm ( ) : System
return System

HttpForm() public method

Makes a deep copy of the input
public HttpForm ( HttpInput input ) : System
input HttpInput The input to copy
return System

Property Details

EmptyForm public_oe static_oe property

Instance to help mark a non-initialized form
public static HttpForm,HttpServer EmptyForm
return HttpForm