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?
Receive method
Reads text received from the server.
Type
StringSyntax
- C#
- VB.NET
public String Receive();
The Receive() syntax has these parts:
public String Receive(Int32 BytesCount);
The Receive(BytesCount) syntax has these parts:
The Receive() syntax has these parts:
Return value | New string with received text. |
public String Receive(Int32 BytesCount);
The Receive(BytesCount) syntax has these parts:
BytesCount | Maximum number of characters that should be read. |
Return value | New string with received text. |
public Function Receive() As String
The Receive() syntax has these parts:
public Function Receive(ByVal BytesCount As Int32) As String
The Receive(BytesCount) syntax has these parts:
The Receive() syntax has these parts:
Return value | New string with received text. |
public Function Receive(ByVal BytesCount As Int32) As String
The Receive(BytesCount) syntax has these parts:
BytesCount | Maximum number of characters that should be read. |
Return value | New string with received text. |
Remarks
Receive method is used to get data received from server represented as a String variable, and store it to your program. It can be used only after DataReceived event is fired. DataReceived event will provide information about total number of bytes received and waiting to be read by your program. You can use that value for BytesCount parameter.If BytesCount is not specified, Receive method will returned everything received from server, as string type data.