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?
ReceiveData method
Reads binary data received from the server.
Type
Byte[]Syntax
- C#
- VB.NET
public Byte[] ReceiveData();
The ReceiveData() syntax has these parts:
public Byte[] ReceiveData(Int32 BytesCount);
The ReceiveData(BytesCount) syntax has these parts:
The ReceiveData() syntax has these parts:
Return value | New byte array with received data. |
public Byte[] ReceiveData(Int32 BytesCount);
The ReceiveData(BytesCount) syntax has these parts:
BytesCount | Maximum number of bytes that should be read. |
Return value | New byte array with received data. |
public Function ReceiveData() As Byte[]
The ReceiveData() syntax has these parts:
public Function ReceiveData(ByVal BytesCount As Int32) As Byte[]
The ReceiveData(BytesCount) syntax has these parts:
The ReceiveData() syntax has these parts:
Return value | New byte array with received data. |
public Function ReceiveData(ByVal BytesCount As Int32) As Byte[]
The ReceiveData(BytesCount) syntax has these parts:
BytesCount | Maximum number of bytes that should be read. |
Return value | New byte array with received data. |
Remarks
ReceiveData method is used to get data received from server represented as byte array, 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 byte array.