Ends a pending asynchronous client authentication operation started with a previous call to erload:System.Net.Security.SslStream.BeginAuthenticateAsClient.
- asyncResult
- An IAsyncResult instance returned by a call to erload:System.Net.Security.SslStream.BeginAuthenticateAsClient.
If the operation has not completed, this method blocks until it does. When the authentication succeeds, you must check the SslStream.IsEncrypted and SslStream.IsSigned properties to determine what security services are used by the System.Net.Security.SslStream. Check the SslStream.IsMutuallyAuthenticated property to determine whether mutual authentication occurred.
If the authentication fails, you receive a System.Security.Authentication.AuthenticationException, and this System.Net.Security.SslStream is no longer useable. You should close this object and remove all references to it so that it can be collected by the garbage collector.
To perform this operation synchronously, use one of the erload:System.Net.Security.SslStream.AuthenticateAsClient method.