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

Parameters that are used in the Browser.LoadURL(LoadURLParams) method. More...

Public Member Functions

 LoadURLParams (string url, string postData)
 Constructs a new LoadURLParams instance. More...
 
 LoadURLParams (string url, string postData, string extraHeaders)
 Constructs a new LoadURLParams instance with specific url, postData and extraHeaders. More...
 

Properties

string Url [get]
 Gets a string that represents URL of the resource that will be loaded. More...
 
string PostData [get]
 Returns a string that represents POST data that will be sent to a resource which address is specified by the DotNetBrowser.LoadURLParams.Url value. More...
 
string ExtraHeaders [get]
 Returns a string that represents extra headers separated by "\n". More...
 

Detailed Description

Parameters that are used in the Browser.LoadURL(LoadURLParams) method.

Constructor & Destructor Documentation

DotNetBrowser.LoadURLParams.LoadURLParams ( string  url,
string  postData 
)

Constructs a new LoadURLParams instance.

Parameters
urlrepresents URL of the resource that will be loaded. Cannot be null.
postDataa string that represents POST data in the key=value&key=value... format. The supported content type of the POST data is application/x-www-form-urlencoded.
Exceptions
ArgumentExceptionwhen when url is null or empty.
DotNetBrowser.LoadURLParams.LoadURLParams ( string  url,
string  postData,
string  extraHeaders 
)

Constructs a new LoadURLParams instance with specific url, postData and extraHeaders.

Parameters
urlrepresents URL of a resource that will be loaded. Cannot be null.
postDataa string that represents POST data. When Content-Type in extra headers is set to "application/x-www-form-urlencoded", the POST data must be in the key=value format. When Content-Type is set to "text/plain", the POST data string can be in any plain format. Cannot be null.
extraHeadersa string that contains "\n"-separated extra headers. It must contain Content-Type header if you send POST data. For example, "Content-Type: application/x-www-form-urlencoded\n" or "Content-Type: text/plain\n". Cannot be null.
Exceptions
ArgumentExceptionwhen when url or extraHeaders is null or empty.

Property Documentation

string DotNetBrowser.LoadURLParams.ExtraHeaders
get

Returns a string that represents extra headers separated by "\n".

a string that represents extra headers separated by "\n".

string DotNetBrowser.LoadURLParams.PostData
get

Returns a string that represents POST data that will be sent to a resource which address is specified by the DotNetBrowser.LoadURLParams.Url value.

string DotNetBrowser.LoadURLParams.Url
get

Gets a string that represents URL of the resource that will be loaded.

a string that represents URL of the resource that will be loaded.