39 references to GetMessage
mscorlib (39)
microsoft\win32\registrykey.cs (3)
937throw new IOException(Win32Native.GetMessage(ret), ret); 1697throw new IOException(Win32Native.GetMessage(errorCode), errorCode); 1711throw new IOException(Win32Native.GetMessage(errorCode), errorCode);
system\diagnostics\eventing\eventprovider.cs (1)
158throw new ArgumentException(Win32Native.GetMessage(unchecked((int)status)));
system\environment.cs (2)
927throw new ArgumentException(Win32Native.GetMessage(errorCode)); 1584throw new InvalidOperationException(Win32Native.GetMessage(errorCode));
system\io\__error.cs (2)
171throw new IOException(Win32Native.GetMessage(errorCode), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath); 188throw new IOException(Win32Native.GetMessage(errorCode), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath);
system\runtime\interopservices\comexception.cs (1)
53: base(Win32Native.GetMessage(hresult))
system\security\cryptography\crypto.cs (1)
113Win32Native.GetMessage(hr)) {
system\security\principal\ntaccount.cs (1)
351throw new SystemException(Win32Native.GetMessage(win32ErrorCode));
system\security\principal\sid.cs (6)
425throw new SystemException(Win32Native.GetMessage(Error)); 527throw new SystemException(Win32Native.GetMessage(ErrorCode)); 545throw new ArgumentException( Win32Native.GetMessage(Error), "sidType/domainSid" ); 550throw new SystemException( Win32Native.GetMessage( Error )); 758throw new SystemException(Win32Native.GetMessage(Error)); 999throw new SystemException(Win32Native.GetMessage(win32ErrorCode));
system\security\principal\win32.cs (1)
153throw new SystemException(Win32Native.GetMessage(win32ErrorCode));
system\security\principal\windowsidentity.cs (11)
188throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error())); 415throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error())); 423throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error())); 732throw new SecurityException(Win32Native.GetMessage(hr)); 748Environment.FailFast(Win32Native.GetMessage(hr)); 755Environment.FailFast(Win32Native.GetMessage(hr)); 810throw new SecurityException(Win32Native.GetMessage(hr)); 843return new SecurityException(Win32Native.GetMessage(win32ErrorCode)); 965throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error())); 970throw new SecurityException(Win32Native.GetMessage(dwErrorCode)); 1054throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
system\security\principal\windowsimpersonationcontext.cs (6)
55throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error())); 70Environment.FailFast(Win32Native.GetMessage(hr)); 74Environment.FailFast(Win32Native.GetMessage(hr)); 77throw new SecurityException(Win32Native.GetMessage(hr)); 103Environment.FailFast(Win32Native.GetMessage(hr)); 114Environment.FailFast(Win32Native.GetMessage(hr));
system\security\principal\windowsprincipal.cs (2)
247throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error())); 255throw new SecurityException(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
system\security\securitycontext.cs (2)
679Environment.FailFast(Win32Native.GetMessage(hr)); 688Environment.FailFast(Win32Native.GetMessage(hr));