System.Net.WebSockets.WebSocketException.SetErrorCodeOnError C# (CSharp) Méthode

SetErrorCodeOnError() private méthode

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