System.Net.Security.SslStream.EndWrite Method

Ends an asynchronous write operation started with a previous call to SslStream.BeginWrite(Byte[], int, int, AsyncCallback, object).

Syntax

public override void EndWrite (IAsyncResult asyncResult)

Parameters

asyncResult
An IAsyncResult instance returned by a call to SslStream.BeginWrite(Byte[], int, int, AsyncCallback, object)

Remarks

If the operation has not completed, this method blocks until it does.

An application 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.

To perform this operation synchronously, use the erload:System.Net.Security.SslStream.Write method.

Requirements

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