49 instantiations of SecurityException
dotnet-svcutil-lib (19)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (11)
562new SecurityException(string.Format( 581new SecurityException(string.Format( 594new SecurityException(string.Format( 608new SecurityException(string.Format( 628new SecurityException(string.Format( 637new SecurityException(string.Format( 666new SecurityException(string.Format( 682new SecurityException(string.Format( 696new SecurityException(string.Format( 716new SecurityException(string.Format( 725new SecurityException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (6)
1339new SecurityException(string.Format( 1351new SecurityException(string.Format( 1363new SecurityException(string.Format( 1375new SecurityException(string.Format( 1399new SecurityException(string.Format( 1411new SecurityException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (2)
461new SecurityException(string.Format(SRSerialization.PartialTrustIXmlSerializableTypeNotPublic, DataContract.GetClrTypeFullName(UnderlyingType)), 472new SecurityException(string.Format(SRSerialization.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.GetClrTypeFullName(UnderlyingType)),
PresentationCore (2)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
929return new System.Security.SecurityException(SR.Media_LogonFailure, exceptionForHR);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
107throw new SecurityException( SR.Invalid_URI );
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
20throw new SecurityException(SR.Security_InvalidAssemblyPublicKey);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
619throw new SecurityException(SR.Format(SR.Security_CannotReadFileData, id), e);
System.Private.DataContractSerialization (21)
System\Runtime\Serialization\ClassDataContract.cs (12)
411throw new SecurityException(SR.Format( 425throw new SecurityException(SR.Format( 437throw new SecurityException(SR.Format( 449throw new SecurityException(SR.Format( 462throw new SecurityException(SR.Format( 481throw new SecurityException(SR.Format( 489throw new SecurityException(SR.Format( 517throw new SecurityException(SR.Format( 532throw new SecurityException(SR.Format( 545throw new SecurityException(SR.Format( 564throw new SecurityException(SR.Format( 572throw new SecurityException(SR.Format(
System\Runtime\Serialization\CollectionDataContract.cs (6)
1454throw new SecurityException(SR.Format( 1465throw new SecurityException(SR.Format( 1476throw new SecurityException(SR.Format( 1487throw new SecurityException(SR.Format( 1510throw new SecurityException(SR.Format( 1521throw new SecurityException(SR.Format(
System\Runtime\Serialization\Json\JsonGlobals.cs (1)
21public static readonly SecurityException SecurityException = new SecurityException();
System\Runtime\Serialization\XmlDataContract.cs (2)
343throw new SecurityException(SR.Format(SR.PartialTrustIXmlSerializableTypeNotPublic, DataContract.GetClrTypeFullName(UnderlyingType)), 353throw new SecurityException(SR.Format(SR.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.GetClrTypeFullName(UnderlyingType)),
System.Security.Permissions (2)
System\Security\Permissions\PrincipalPermission.cs (2)
228throw new SecurityException(SR.Security_PrincipalPermission); 248throw new SecurityException(SR.Security_PrincipalPermission);
System.Windows.Forms (1)
System\Windows\Forms\SendKeys\SendKeys.cs (1)
232throw new SecurityException(SR.SendKeysHookFailed);
System.Windows.Forms.Tests (2)
System\Windows\Forms\BindingTests.cs (2)
410yield return new object[] { null, new SecurityException() }; 411yield return new object[] { new BindingCompleteEventArgs(null, BindingCompleteState.Success, BindingCompleteContext.ControlUpdate), new SecurityException() };
189 references to SecurityException
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (2)
189catch (SecurityException e) 223catch (SecurityException e)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (2)
554internal bool RequiresMemberAccessForRead(SecurityException securityException) 657internal bool RequiresMemberAccessForWrite(SecurityException securityException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (2)
1332internal bool RequiresMemberAccessForRead(SecurityException securityException) 1392internal bool RequiresMemberAccessForWrite(SecurityException securityException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (2)
397catch (SecurityException securityException) 454private bool RequiresMemberAccessForCreate(SecurityException securityException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
97catch (SecurityException securityException) 176catch (SecurityException securityException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
88catch (SecurityException securityException) 112catch (SecurityException securityException)
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ClientCertLoader.cs (1)
287catch (SecurityException exception)
RequestProcessing\Request.cs (1)
390catch (SecurityException se)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Middleware\HttpsConnectionMiddleware.cs (1)
265catch (Exception exception) when (exception is CryptographicException || exception is SecurityException)
Microsoft.Build (8)
Construction\Solution\ProjectInSolution.cs (1)
367catch (SecurityException e)
Construction\Solution\SolutionFile.cs (1)
1228catch (SecurityException e)
ExceptionHandling.cs (2)
167|| e is SecurityException 293if (e is SecurityException
FileMatcher.cs (3)
265catch (System.Security.SecurityException) 356catch (System.Security.SecurityException) 412catch (System.Security.SecurityException)
Logging\ProfilerLogger.cs (1)
304SecurityException or
Microsoft.Build.Engine.OM.UnitTests (2)
ExceptionHandling.cs (2)
167|| e is SecurityException 293if (e is SecurityException
Microsoft.Build.Framework (2)
EncodingUtilities.cs (2)
281catch (Exception ex) when (ex is IOException || ex is SecurityException) 307catch (Exception ex) when (ex is SecurityException or ObjectDisposedException)
Microsoft.Build.Tasks.CodeAnalysis (1)
Utilities.cs (1)
135e is SecurityException ||
Microsoft.Build.Tasks.Core (8)
ExceptionHandling.cs (2)
167|| e is SecurityException 293if (e is SecurityException
FileMatcher.cs (3)
265catch (System.Security.SecurityException) 356catch (System.Security.SecurityException) 412catch (System.Security.SecurityException)
ManifestUtil\Util.cs (3)
491catch (SecurityException) 524catch (SecurityException) 555catch (SecurityException)
Microsoft.Build.Utilities.Core (5)
ExceptionHandling.cs (2)
167|| e is SecurityException 293if (e is SecurityException
FileMatcher.cs (3)
265catch (System.Security.SecurityException) 356catch (System.Security.SecurityException) 412catch (System.Security.SecurityException)
Microsoft.CodeAnalysis (1)
FileSystem\FileUtilities.cs (1)
260catch (System.Security.SecurityException e)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
260catch (System.Security.SecurityException e)
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
260catch (System.Security.SecurityException e)
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Utilities\IOUtilities.cs (1)
54SecurityException or
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
260catch (System.Security.SecurityException e)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (1)
260catch (System.Security.SecurityException e)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
799catch (SecurityException)
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
624|| e is SecurityException
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
300ex is SecurityException || 353ex is SecurityException ||
Microsoft.Extensions.Logging.EventLog (1)
WindowsEventLog.cs (1)
50catch (SecurityException sx)
Microsoft.ML.Core (1)
Utilities\Stream.cs (1)
861catch (System.Security.SecurityException exc)
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\IOUtils.vb (1)
65Catch ex As SecurityException
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
410Catch e2 As SecurityException
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (1)
38Catch ex As SecurityException
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
52Catch ex As SecurityException
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
40Catch ex As Security.SecurityException
Microsoft\VisualBasic\FileIO\FileSystem.vb (5)
1025TypeOf ex Is SecurityException) Then 1045TypeOf ex Is SecurityException OrElse TypeOf ex Is NotSupportedException) Then 1065TypeOf ex Is SecurityException OrElse TypeOf ex Is IO.DirectoryNotFoundException) Then 1339TypeOf ex Is SecurityException Or 1514TypeOf ex Is SecurityException OrElse
Microsoft.VisualBasic.Forms (48)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
162Catch ex As SecurityException
Microsoft\VisualBasic\Devices\Network.Availability.vb (1)
59Catch ex As SecurityException
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (1)
56TypeOf ex Is SecurityException OrElse
Microsoft\VisualBasic\Interaction.vb (1)
76Catch ex As SecurityException
Microsoft\VisualBasic\MyServices\FileSystemProxy.vb (44)
103''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 136''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 171''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 210''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 245''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 275''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 307''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 342''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 400''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 435''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 474''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 503''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 538''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 577''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 630''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 671''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 701''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 727''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 750''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 769''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 789''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 814''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 845''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 926''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 960''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 997''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1037''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1072''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1103''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1135''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1170''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1202''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1227''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1252''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1266''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1283''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1349''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1372''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1396''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1421''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1447''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1471''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1493''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception> 1516''' <exception cref="SecurityException">The user lacks necessary permissions to view the path.</exception>
MSBuild (7)
AutomaticEncodingRestorer.cs (2)
42catch (Exception ex) when (ex is IOException || ex is SecurityException) 61catch (Exception ex) when (ex is IOException || ex is SecurityException)
ExceptionHandling.cs (2)
167|| e is SecurityException 293if (e is SecurityException
XMake.cs (3)
1938catch (Exception ex) when (ex is IOException || ex is SecurityException) 2292catch (SecurityException e) 4429catch (SecurityException e) when (!loggerDescription.IsOptional)
MSBuildTaskHost (2)
ExceptionHandling.cs (2)
167|| e is SecurityException 293if (e is SecurityException
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1067[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityException))]
netstandard (1)
netstandard.cs (1)
2003[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityException))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CriticalExceptions.cs (1)
28ex is System.Security.SecurityException;
PresentationFramework (2)
MS\Internal\Ink\ClipboardProcessor.cs (1)
359catch (SecurityException)
System\Windows\Navigation\NavigationService.cs (1)
2730catch (SecurityException)
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (4)
51/// <exception cref="System.Security.SecurityException"> 107/// <exception cref="System.Security.SecurityException"> 164/// <exception cref="System.Security.SecurityException"> 228/// <exception cref="System.Security.SecurityException">
System.Data.Common (3)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
238private static readonly Type s_securityType = typeof(SecurityException);
System\Data\DataSetUtil.cs (2)
95(e.GetType() != typeof(System.Security.SecurityException)) && 96!typeof(System.Security.SecurityException).IsAssignableFrom(e.GetType()));
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
238private static readonly Type s_securityType = typeof(SecurityException);
System.Net.HttpListener (2)
System\Net\ServiceNameStore.cs (2)
288catch (System.Security.SecurityException) 306catch (System.Security.SecurityException)
System.Net.Mail (2)
System\Net\Mail\SmtpClient.cs (2)
524if (e is SecurityException || 672if (e is SecurityException ||
System.Net.Requests (1)
System\Net\FtpWebRequest.cs (1)
1109else if (exception is AuthenticationException || exception is SecurityException)
System.Net.Security (2)
System\Net\CertificateValidationPal.cs (1)
74if (exception is CryptographicException || exception is SecurityException)
System\Net\Security\SslStream.Protocol.cs (1)
294catch (SecurityException) { }
System.Net.WebClient (10)
System\Net\WebClient.cs (10)
311if (e is WebException || e is SecurityException) throw; 341if (e is WebException || e is SecurityException) throw; 376if (e is WebException || e is SecurityException) throw; 414if (e is WebException || e is SecurityException) throw; 466if (e is WebException || e is SecurityException) throw; 581if (e is WebException || e is SecurityException) throw; 646if (e is WebException || e is SecurityException) throw; 862if (e is WebException || e is SecurityException) throw; 999if (e is WebException || e is SecurityException) throw; 1527e is WebException || e is SecurityException ? e : new WebException(SR.net_webclient, e);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
54/// <summary>Gets or sets a value that indicates whether to skip files or directories when access is denied (for example, <see cref="UnauthorizedAccessException" /> or <see cref="Security.SecurityException" />). The default is <see langword="true" />.</summary>
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
372catch (Security.SecurityException)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
600/// <see cref="SecurityException"/>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (3)
404catch (SecurityException) { } 450catch (SecurityException) { } 477catch (SecurityException) { }
System.Private.DataContractSerialization (15)
System\Runtime\Serialization\ClassDataContract.cs (2)
404internal bool RequiresMemberAccessForRead(SecurityException? securityException) 509internal bool RequiresMemberAccessForWrite(SecurityException? securityException)
System\Runtime\Serialization\CollectionDataContract.cs (2)
1448internal bool RequiresMemberAccessForRead(SecurityException? securityException) 1504internal bool RequiresMemberAccessForWrite(SecurityException? securityException)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
72catch (SecurityException securityException) 161catch (SecurityException securityException)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
65catch (SecurityException securityException) 92catch (SecurityException securityException)
System\Runtime\Serialization\Json\JsonGlobals.cs (1)
21public static readonly SecurityException SecurityException = new SecurityException();
System\Runtime\Serialization\XmlDataContract.cs (2)
280catch (SecurityException securityException) 337private bool RequiresMemberAccessForCreate(SecurityException? securityException)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
94catch (SecurityException securityException) 227catch (SecurityException securityException)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
88catch (SecurityException securityException) 132catch (SecurityException securityException)
System.Private.Xml (5)
System\Xml\Serialization\Compilation.cs (2)
627catch (SecurityException e) 654catch (SecurityException e)
System\Xml\Serialization\XmlSerializationReader.cs (1)
5079WriteCatchException(typeof(SecurityException));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3457WriteCatchException(typeof(SecurityException));
System\Xml\Xsl\IlGen\XmlILTrace.cs (1)
46catch (SecurityException)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
757[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityException))]
System.Windows.Forms (5)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (1)
133catch (Security.SecurityException)
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (4)
122if (t is Security.SecurityException) 135if (t is Security.SecurityException) 153if (t is Security.SecurityException) 259StockIconId stockIconId = (t is Security.SecurityException) ? StockIconId.Info : StockIconId.Error;
System.Windows.Forms.Primitives.TestUtilities (1)
PlatformDetection.Windows.cs (1)
183catch (Exception e) when (e is SecurityException or InvalidCastException or PlatformNotSupportedException /* UAP */)
System.Xaml (6)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CriticalExceptions.cs (1)
28ex is System.Security.SecurityException;
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (5)
252catch (SecurityException) 280catch (SecurityException) 308catch (SecurityException) 355catch (SecurityException) 384catch (SecurityException)