The SftpConnectionViewModel is the ViewModel for the Views.EditSftpWindow.
More...
|
| SftpConnection | SftpConnection [get] |
| | Gets the underlying SFTP connection model.
|
| bool | CreateOnSave [get] |
| | Gets whether this view model should be added as a new connection when saved.
|
| SftpFileSystem? | FileSystem [get, set] |
| | Gets or sets the active SFTP file system instance for this connection.
|
| string | HostnameOrIpAddress [get, set] |
| | Gets or sets the remote host name or IP address.
|
| ushort? | Port [get, set] |
| | Gets or sets the remote SSH port.
|
| string | Username [get, set] |
| | Gets or sets the SSH username.
|
| string | KeyPath [get, set] |
| | Gets or sets the private key file path.
|
| bool? | NeedsPassphrase [get, set] |
| | Gets or sets whether the private key requires a passphrase.
|
| string? | InitialDirectory [get, set] |
| | Gets or sets the initial remote directory after connecting.
|
◆ SftpConnectionViewModel() [1/3]
| FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnectionViewModel |
( |
SftpConnection | sftpConnection | ) |
|
|
inline |
Creates a connection view model from an existing SFTP connection model.
◆ SftpConnectionViewModel() [2/3]
| FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnectionViewModel |
( |
Action< SftpConnectionViewModel > | addSelf | ) |
|
|
inline |
Creates a new connection view model that adds itself to a target collection on save.
◆ SftpConnectionViewModel() [3/3]
| FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnectionViewModel |
( |
| ) |
|
|
inline |
Creates a new empty connection view model.
◆ Copy()
Creates a detached copy of the editable connection fields.
◆ Save()
Applies values from another view model, updates the model, and finalizes creation when needed.
◆ CreateOnSave
| bool FileSurfer.Core.ViewModels.SftpConnectionViewModel.CreateOnSave |
|
get |
Gets whether this view model should be added as a new connection when saved.
◆ FileSystem
| SftpFileSystem? FileSurfer.Core.ViewModels.SftpConnectionViewModel.FileSystem |
|
getset |
Gets or sets the active SFTP file system instance for this connection.
◆ HostnameOrIpAddress
| string FileSurfer.Core.ViewModels.SftpConnectionViewModel.HostnameOrIpAddress |
|
getset |
Gets or sets the remote host name or IP address.
◆ InitialDirectory
| string? FileSurfer.Core.ViewModels.SftpConnectionViewModel.InitialDirectory |
|
getset |
Gets or sets the initial remote directory after connecting.
◆ KeyPath
| string FileSurfer.Core.ViewModels.SftpConnectionViewModel.KeyPath |
|
getset |
Gets or sets the private key file path.
◆ NeedsPassphrase
| bool? FileSurfer.Core.ViewModels.SftpConnectionViewModel.NeedsPassphrase |
|
getset |
Gets or sets whether the private key requires a passphrase.
◆ Port
| ushort? FileSurfer.Core.ViewModels.SftpConnectionViewModel.Port |
|
getset |
Gets or sets the remote SSH port.
◆ SftpConnection
| SftpConnection FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnection |
|
get |
Gets the underlying SFTP connection model.
◆ Username
| string FileSurfer.Core.ViewModels.SftpConnectionViewModel.Username |
|
getset |
Gets or sets the SSH username.
The documentation for this class was generated from the following file: