C# Class HttpServer.HttpForm

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

Méthodes publiques

Свойство Type Description
EmptyForm HttpForm

Méthodes publiques

Méthode 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

Méthode Description
HttpForm ( string name, bool ignoreChanges ) : System

Method Details

AddFile() public méthode

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
Résultat void

Clear() public méthode

Disposes all held HttpFile's and resets values
public Clear ( ) : void
Résultat void

ContainsFile() public méthode

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
Résultat bool

GetFile() public méthode

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
Résultat HttpServer.HttpFile

HttpForm() public méthode

Initializes a form container with the specified name
public HttpForm ( ) : System
Résultat System

HttpForm() public méthode

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

Property Details

EmptyForm public_oe static_oe property

Instance to help mark a non-initialized form
public static HttpForm,HttpServer EmptyForm
Résultat HttpForm