System.Net.Security.SslStream.Write Method

Writes the specified data to this stream.

Syntax

public void Write (byte[] buffer)

Parameters

buffer
A byte array that supplies the bytes written to the stream.

Remarks

This method blocks while the operation completes. To prevent blocking while the operation completes, use the SslStream.BeginWrite(Byte[], int, int, AsyncCallback, object) method.

You cannot call this method until you have successfully authenticated. To authenticate call one of the erload:System.Net.Security.SslStream.AuthenticateAsClient, or erload:System.Net.Security.SslStream.BeginAuthenticateAsClient, erload:System.Net.Security.SslStream.AuthenticateAsServer, erload:System.Net.Security.SslStream.BeginAuthenticateAsServer methods.

The System.Net.Security.SslStream class does not support multiple simultaneous write operations.

Requirements

Namespace: System.Net.Security
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0