Mentalis.org Security Library documentation

SecureNetworkStream.Write Method 

Writes data to the stream.

[Visual Basic]
Overrides Public Sub Write( _
   ByVal buffer As Byte(), _
   ByVal offset As Integer, _
   ByVal size As Integer _
)
[C#]
public override void Write(
   byte[] buffer,
   int offset,
   int size
);

Parameters

buffer
The data to write to the stream.
offset
The location in the buffer to start writing data from.
size
The number of bytes to write to the stream.

Exceptions

Exception TypeCondition
ArgumentNullExceptionbuffer is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionThe specified offset or size exceeds the size of buffer.
IOExceptionThere is a failure while writing to the network.

See Also

SecureNetworkStream Class | SecureNetworkStream Members | Org.Mentalis.Security.Ssl Namespace