This is an old revision of the document!
SessionOptions.ParseUrl Method
Parses session URL into its components.
This feature is available only in the latest beta release.
Advertisement
Syntax
public void ParseUrl(string url)
Public Sub ParseUrl(ByVal url As String)
Parameters
| Name | Description |
|---|---|
| string url | Session URL to parse. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The URL given does not have correct format. |
Remarks
Parses the given session URL and stores the results into Protocol, HostName, UserName, Password (SecurePassword), PortNumber, SshHostKeyFingerprint, FtpSecure, WebdavSecure and WebdavRoot properties.
Resets properties not specified in the URL to their default values. Always resets GiveUpSecurityAndAcceptAnySshHostKey, TlsHostCertificateFingerprint, and GiveUpSecurityAndAcceptAnyTlsHostCertificate to their default values.
Advertisement
Note that the method parser is more strict, than a parser used for URLs with scripting command open or command-line.