DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.FormData Class Reference

Represents POST data parameters if the Content-Type is application/x-www-form-urlencoded. More...

Inherits DotNetBrowser.PostData.

Inherited by DotNetBrowser.MultipartFormData.

Public Member Functions

 FormData ()
 Constructs a new FormData instance. More...
 
 FormData (IDictionary< string, IList< string >> keyValuePairs)
 Constructs a new FormData instance with specified parameters. More...
 
ICollection< string > GetPairKeys ()
 Returns all keys from the key-value pair collection of the POST request. More...
 
IList< string > GetPairValues (string key)
 Returns a list of values from the key-value pair collection associated with specified key. More...
 
IList< string > SetPair (string key, params string[] values)
 Sets key-value pair to the key-value pair collection of the POST request. If such a key already exist, it will be replaced. More...
 
IList< string > RemovePair (string key)
 Removes key-value pair with associated key from the key-value pair collection of the POST request. More...
 
void RemoveAllPairs ()
 Removes all pairs from the key-value pair collection of the POST request. More...
 
override int GetHashCode ()
 Serves as a hash function for a particular type. More...
 
override bool Equals (object obj)
 Determines whether the specified FormData is equal to the current FormData. More...
 

Properties

virtual PostDataContentType ContentType [get]
 Gets content type of POST data. More...
 
- Properties inherited from DotNetBrowser.PostData
PostDataContentType ContentType [get]
 Gets content type of POST data. More...
 

Detailed Description

Represents POST data parameters if the Content-Type is application/x-www-form-urlencoded.

Constructor & Destructor Documentation

DotNetBrowser.FormData.FormData ( )

Constructs a new FormData instance.

DotNetBrowser.FormData.FormData ( IDictionary< string, IList< string >>  keyValuePairs)

Constructs a new FormData instance with specified parameters.

Parameters
keyValuePairsAll keys from the key-value pair collection of the POST request.

Member Function Documentation

override bool DotNetBrowser.FormData.Equals ( object  obj)

Determines whether the specified FormData is equal to the current FormData.

Parameters
objThe object to compare with the current FormData object.
Returns
true if the specified object is equal to the current FormData object; otherwise, false.
override int DotNetBrowser.FormData.GetHashCode ( )

Serves as a hash function for a particular type.

Returns
A hash code for the current FormData.
ICollection<string> DotNetBrowser.FormData.GetPairKeys ( )

Returns all keys from the key-value pair collection of the POST request.

Returns
all keys from the key-value pair collection of the POST request.
IList<string> DotNetBrowser.FormData.GetPairValues ( string  key)

Returns a list of values from the key-value pair collection associated with specified key.

Parameters
keythe key.
Returns
a list of values from the key-value pair collection associated with specified key.
void DotNetBrowser.FormData.RemoveAllPairs ( )

Removes all pairs from the key-value pair collection of the POST request.

IList<string> DotNetBrowser.FormData.RemovePair ( string  key)

Removes key-value pair with associated key from the key-value pair collection of the POST request.

Parameters
keythe key.
Returns
the list of previous values associated with the key, or null if there was no mapping for key.
IList<string> DotNetBrowser.FormData.SetPair ( string  key,
params string[]  values 
)

Sets key-value pair to the key-value pair collection of the POST request. If such a key already exist, it will be replaced.

Parameters
keythe key.
valuesthe values.
Returns
the previous value associated with key, or null if there was no mapping for key.

Property Documentation

virtual PostDataContentType DotNetBrowser.FormData.ContentType
get

Gets content type of POST data.