C# Класс HttpServer.HttpForm

Container for posted form data
Наследование: HttpInput
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
EmptyForm HttpForm

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
HttpForm ( string name, bool ignoreChanges ) : System

Описание методов

AddFile() публичный Метод

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
Результат void

Clear() публичный Метод

Disposes all held HttpFile's and resets values
public Clear ( ) : void
Результат void

ContainsFile() публичный Метод

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
Результат bool

GetFile() публичный Метод

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
Результат HttpServer.HttpFile

HttpForm() публичный Метод

Initializes a form container with the specified name
public HttpForm ( ) : System
Результат System

HttpForm() публичный Метод

Makes a deep copy of the input
public HttpForm ( HttpInput input ) : System
input HttpInput The input to copy
Результат System

Описание свойств

EmptyForm публичное статическое свойство

Instance to help mark a non-initialized form
public static HttpForm,HttpServer EmptyForm
Результат HttpForm