Description
Gets the settings of the WebBrowser control. The global settings are also obtained.
Syntax
WebBrowserGet (string n, ref string v)
Argument |
Description |
---|---|
n |
The name of the setting. See WebBrowserSet for the list of available settings. The following values are read-only.
|
v |
The value of the setting that is obtained. |
Return value
Integer.
Returns values as follows. If any argument's value is null, the method returns null.
-
1 -- Success
-
-1 -- Failed to execute the line.
-
-2 -- Failed to initialize the control and obtain the WebBrowser object. The WebView2 is invalid.
-
-4 -- The target path does not exist.
-
-5 -- The URI is invalid.
-
-6 -- The specified download task does not exist.
-
-8 -- The setting item does not exist.
-
-9 -- The path is invalid or does not exist.
-
-11 -- Unknown error.
-
-12 -- Invalid event name.
-
-14 -- Invalid argument.
-
-15 -- Failed to create screenshot file.
-
-16 -- There is a print job in progress, which cannot be closed.
-
-17 -- Could not find the corresponding item.
Examples
The following example gets the values that are set for the Runtime version for the WebBrowser control:
string ls_Get long ll_Ret ll_Ret =WebbrowserGet("RuntimeVersion", ls_Get)
See also
Description
Gets the settings of the WebBrowser control.
Syntax
WebBrowserGet (string n, ref string v)
Argument |
Description |
---|---|
n |
The name of the setting. See WebBrowserSet for the list of available settings. |
v |
The value of the setting that is obtained. |
Return value
Integer.
Returns the following error code:
-
1 -- Success
-
-8 -- The setting name does not exist.
Examples
The following example gets the values that are set for the proxy for the WebBrowser control:
WebBrowserGet ("ProxyAddress", strValue) WebBrowserGet ("ProxyPort", strValue) WebBrowserGet ("ProxyUser", strValue) WebBrowserGet ("ProxyPassword", strValue)
See also