28 references to SecurityException
mscorlib (26)
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (1)
317
throw new
SecurityException
(Environment.GetResourceString("Serialization_RequireFullTrust", objectType));
system\runtime\serialization\formatterservices.cs (1)
218
throw new
SecurityException
(Environment.GetResourceString("Serialization_TypeSecurity", advancedTypes[i].FullName, t.FullName));
system\security\codeaccesssecurityengine.cs (3)
633
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
661
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
681
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
system\security\permissionlistset.cs (1)
350
throw new
SecurityException
(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Security_Generic")));
system\security\principal\windowsidentity.cs (11)
188
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
415
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
423
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
732
throw new
SecurityException
(Win32Native.GetMessage(hr));
740
throw new
SecurityException
(Environment.GetResourceString( "ExecutionEngine_MissingSecurityDescriptor" ) );
759
throw new
SecurityException
(Environment.GetResourceString("Argument_ImpersonateUser"));
810
throw new
SecurityException
(Win32Native.GetMessage(hr));
843
return new
SecurityException
(Win32Native.GetMessage(win32ErrorCode));
965
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
970
throw new
SecurityException
(Win32Native.GetMessage(dwErrorCode));
1054
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
system\security\principal\windowsimpersonationcontext.cs (2)
55
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
77
throw new
SecurityException
(Win32Native.GetMessage(hr));
system\security\principal\windowsprincipal.cs (2)
247
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
255
throw new
SecurityException
(Win32Native.GetMessage(Marshal.GetLastWin32Error()));
system\security\securityruntime.cs (4)
149
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
170
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
199
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
220
throw new
SecurityException
( Environment.GetResourceString( "Security_MustRevertOverride" ) );
system\throwhelper.cs (1)
107
throw new System.Security.
SecurityException
(Environment.GetResourceString(GetResourceName(resource)));
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
457
throw FxTrace.Exception.AsError(new
SecurityException
(string.Format(CultureInfo.CurrentUICulture, SR.UntrustedSourceDetected, fileName)));
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
457
throw FxTrace.Exception.AsError(new
SecurityException
(string.Format(CultureInfo.CurrentUICulture, SR.UntrustedSourceDetected, fileName)));