Ends an asynchronous write operation started with a previous call to BeginWrite.
Assembly: System (in System.dll)
asyncResult is a null reference (Nothing in Visual Basic).
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.
An application cannot call this method until you have successfully authenticated. To authenticate, call one of the AuthenticateAsClient, or BeginAuthenticateAsClient, AuthenticateAsServer, BeginAuthenticateAsServer methods.
To perform this operation synchronously, use the Write method.