SslStream.Write Method (Byte())

 

Writes the specified data to this stream.

Namespace:   System.Net.Security
Assembly:  System (in System.dll)

Public Sub Write (
	buffer As Byte()
)

Parameters

buffer
Type: System.Byte()

A Byte array that supplies the bytes written to the stream.

Exception Condition
ArgumentNullException

buffer is null.

IOException

The write operation failed.

NotSupportedException

There is already a write operation in progress.

ObjectDisposedException

This object has been closed.

InvalidOperationException

Authentication has not occurred.

This method blocks while the operation completes. To prevent blocking while the operation completes, use the BeginWrite method.

You cannot call this method until you have successfully authenticated. To authenticate call one of the AuthenticateAsClient, or BeginAuthenticateAsClient, AuthenticateAsServer, BeginAuthenticateAsServer methods.

The SslStream class does not support multiple simultaneous write operations.

The following code example demonstrates writing to an authenticated SslStream.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: