'Declaration
Public Function WriteTaskAsync( _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer _
) As Task(Of Data)
'Usage
Dim instance As TcpBase
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Task(Of Data)
value = instance.WriteTaskAsync(buffer, offset, count)
public Task<Data> WriteTaskAsync(
byte[] ,
int ,
int
)
public: Task<Data*>* WriteTaskAsync(
byte[]* ,
int ,
int
)
public:
Task<Data^>^ WriteTaskAsync(
array<byte>^ ,
int ,
int
)
Parameters
- buffer
- Byte array of data to send.
- offset
- The position in the data buffer at which to begin sending data.
- count
- The number of bytes to send.
Return Value
A task that represents the asynchronous read operation. The value of the TResult parameter contains the
Data object encapsulating the written data (null if the socket is closed).