NegotiateStream.EndWrite Method (IAsyncResult)
Ends an asynchronous write operation that was started with a call to BeginWrite.
Assembly: System (in System.dll)
asyncResult is null.
The asyncResult was not created by a call to BeginWrite.
There is no pending write operation to complete.
The write operation failed.
Authentication has not occurred.
If the operation has not completed, this method blocks until it does.
You cannot call this method until you have successfully authenticated. To authenticate, call one of the AuthenticateAsClient, BeginAuthenticateAsClient, AuthenticateAsServer, or BeginAuthenticateAsServer methods.
To perform this operation synchronously, use the Write method.
Available since 2.0