System.Net.WebSockets.WebSocketException.SetErrorCodeOnError C# (CSharp) Method

SetErrorCodeOnError() private method

private SetErrorCodeOnError ( int nativeError ) : void
nativeError int
return void
        private void SetErrorCodeOnError(int nativeError)
        {
            if (!Succeeded(nativeError))
            {
                HResult = nativeError;
            }
        }