Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
PeekLine method
Receives incoming line without removing it from the buffer.
Type
StringSyntax
- C#
- VB.NET
public String PeekLine();
The PeekLine() syntax has these parts:
The PeekLine() syntax has these parts:
Return value | New string with received text. |
public Function PeekLine() As String
The PeekLine() syntax has these parts:
The PeekLine() syntax has these parts:
Return value | New string with received text. |
Remarks
PeekLine method will return full line of text if it exists in incoming buffer, but will not remove it from the buffer. wodSSH.NET will remove end-of-line markers (CR/LF) so you don't need to trim this string by yourself. If no line is found, wodSSH.NET will throw an "None found" exception, and will not wait for data to arrive.To actually remove data from the incoming buffer, you should use Receive or ReceiveLine methods.