System.Net.Sockets.NetworkStream.AwaitableSocketAsyncEventArgs.GetResult C# (CSharp) Метод

GetResult() публичный Метод

Gets the result of the completion operation.
Unlike Task's awaiter's GetResult, this does not block until the operation completes: it must only be used once the operation has completed. This is handled implicitly by await.
public GetResult ( ) : int
Результат int
            public int GetResult()
            {
                _continuation = null;
                if (SocketError != SocketError.Success)
                {
                    ThrowIOSocketException();
                }
                return BytesTransferred;
            }