Ends an asynchronous write operation that was started with a call to BeginWrite.
Assembly: System (in System.dll)
asyncResult is a null reference (Nothing in Visual Basic).
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2