2 types derived from UnauthorizedAccessException
Microsoft.Maui.Essentials (1)
Types\Shared\Exceptions.shared.cs (1)
34 public class PermissionException : UnauthorizedAccessException
System.Security.AccessControl (1)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (1)
441public sealed partial class PrivilegeNotHeldException : System.UnauthorizedAccessException, System.Runtime.Serialization.ISerializable
45 instantiations of UnauthorizedAccessException
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
509throw new UnauthorizedAccessException(SRServiceModel.UnauthorizedAccess_MemStreamBuffer);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
519throw new UnauthorizedAccessException(SRServiceModel.UnauthorizedAccess_MemStreamBuffer);
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
442throw new UnauthorizedAccessException();
Microsoft.Build.Tasks.Core (1)
NodePipeClient.cs (1)
67throw new UnauthorizedAccessException();
Microsoft.Build.Tasks.UnitTests (2)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
1200throw new UnauthorizedAccessException(); 1988throw new UnauthorizedAccessException();
PresentationCore (2)
MS\Internal\FontCache\FontCacheUtil.cs (1)
754throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName));
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
24throw new System.UnauthorizedAccessException();
PresentationFramework (1)
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
363throw new UnauthorizedAccessException(SR.StreamCannotBeWritten);
PresentationUI (2)
MS\Internal\Documents\Application\DocumentStream.cs (2)
173throw new UnauthorizedAccessException( 606throw new UnauthorizedAccessException(
ReachFramework (1)
Packaging\XpsManager.cs (1)
159throw new UnauthorizedAccessException();
System.Console (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.Formats.Tar (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.Compression.ZipFile (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.FileSystem.Watcher (2)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.MemoryMappedFiles (4)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (2)
22throw new UnauthorizedAccessException(); 73throw new UnauthorizedAccessException();
System.IO.Pipes (6)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
124throw new UnauthorizedAccessException(SR.UnauthorizedAccess_NotOwnedByCurrentUser);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (3)
119throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_ClientIsNotCurrentUser, peerID, serverEUID)); 270throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path)); 333throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path));
System.IO.Ports (3)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System\IO\Ports\SafeSerialDeviceHandle.Unix.cs (1)
29throw new UnauthorizedAccessException(
System.Private.CoreLib (7)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
141new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 142new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
40return new UnauthorizedAccessException(
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
131throw new UnauthorizedAccessException(SR.Format(SR.IO_NotAFile, sourceFullPath)); 140throw new UnauthorizedAccessException(SR.Format(SR.IO_NotAFile, destFullPath));
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
182throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
47throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer);
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Accessible.cs (1)
1360throw new UnauthorizedAccessException();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
962throw new UnauthorizedAccessException();
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
505throw new UnauthorizedAccessException();
237 references to UnauthorizedAccessException
CSharpSyntaxGenerator (1)
Program.cs (1)
174catch (UnauthorizedAccessException)
dotnet-getdocument (2)
Commands\InvokeCommand.cs (2)
170catch (UnauthorizedAccessException) 178catch (UnauthorizedAccessException)
dotnet-svcutil-lib (1)
CodeSerializer.cs (1)
84catch (System.UnauthorizedAccessException)
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
1117catch (UnauthorizedAccessException)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
433catch (UnauthorizedAccessException)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeTransportFactory.cs (1)
60catch (UnauthorizedAccessException ex)
Microsoft.Build (11)
BackEnd\Shared\BuildRequestConfiguration.cs (2)
721catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException) 760catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException)
Construction\Solution\ProjectInSolution.cs (1)
382catch (UnauthorizedAccessException e)
Construction\Solution\SolutionFile.cs (1)
1255catch (UnauthorizedAccessException e)
ExceptionHandling.cs (2)
164return e is UnauthorizedAccessException 294|| e is UnauthorizedAccessException
FileMatcher.cs (3)
270catch (UnauthorizedAccessException) 371catch (System.UnauthorizedAccessException) 427catch (System.UnauthorizedAccessException)
FileUtilities.cs (1)
965catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
Logging\ProfilerLogger.cs (1)
303UnauthorizedAccessException or
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
1082catch (UnauthorizedAccessException)
Microsoft.Build.Engine.OM.UnitTests (3)
ExceptionHandling.cs (2)
164return e is UnauthorizedAccessException 294|| e is UnauthorizedAccessException
FileUtilities.cs (1)
965catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
132e is UnauthorizedAccessException ||
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\Utilities.cs (1)
132e is UnauthorizedAccessException ||
Microsoft.Build.Tasks.Core (21)
AssemblyDependency\Node\OutOfProcRarNode.cs (1)
51catch (UnauthorizedAccessException ex)
AssemblyDependency\ReferenceTable.cs (1)
498catch (UnauthorizedAccessException e)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2659catch (UnauthorizedAccessException)
BootstrapperUtil\BootstrapperBuilder.cs (4)
380catch (UnauthorizedAccessException ex) 1481catch (UnauthorizedAccessException ex) 2013catch (UnauthorizedAccessException) 2052catch (UnauthorizedAccessException)
Copy.cs (2)
975case UnauthorizedAccessException: 1004if (e is UnauthorizedAccessException)
ExceptionHandling.cs (2)
164return e is UnauthorizedAccessException 294|| e is UnauthorizedAccessException
FileMatcher.cs (4)
270catch (UnauthorizedAccessException) 371catch (System.UnauthorizedAccessException) 427catch (System.UnauthorizedAccessException) 848catch (UnauthorizedAccessException) { }
FileUtilities.cs (1)
965catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
ManifestUtil\ManifestWriter.cs (1)
141catch (UnauthorizedAccessException)
ManifestUtil\Util.cs (3)
479catch (UnauthorizedAccessException) 515catch (UnauthorizedAccessException) 543catch (UnauthorizedAccessException)
RemoveDir.cs (1)
125catch (UnauthorizedAccessException e)
Microsoft.Build.Utilities.Core (7)
ExceptionHandling.cs (2)
164return e is UnauthorizedAccessException 294|| e is UnauthorizedAccessException
FileMatcher.cs (3)
270catch (UnauthorizedAccessException) 371catch (System.UnauthorizedAccessException) 427catch (System.UnauthorizedAccessException)
FileUtilities.cs (1)
965catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
ToolTask.cs (1)
1605catch (Exception e) when (e is Win32Exception || e is IOException || e is UnauthorizedAccessException)
Microsoft.CodeAnalysis.Test.Utilities (2)
TempFiles\DisposableFile.cs (2)
35catch (UnauthorizedAccessException) 50catch (UnauthorizedAccessException)
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1470Assert.Throws<UnauthorizedAccessException>(() => File.Delete(testFixture.Delta1));
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Utilities\IOUtilities.cs (1)
56UnauthorizedAccessException or
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
541catch (UnauthorizedAccessException exception)
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
623return e is UnauthorizedAccessException
Microsoft.DotNet.Build.Tasks.Packaging (1)
GetPackageDescription.cs (1)
105if (excep is IOException || excep is UnauthorizedAccessException)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Linux\Disk\LinuxSystemDiskMetrics.cs (1)
176ex is UnauthorizedAccessException)
Linux\LinuxUtilizationProvider.cs (1)
283ex is System.UnauthorizedAccessException)
Linux\Network\LinuxNetworkMetrics.cs (1)
104ex is UnauthorizedAccessException)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\LinuxNetworkMetricsTests.cs (1)
67[InlineData(typeof(UnauthorizedAccessException))]
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
68catch (UnauthorizedAccessException)
ManifestEmbeddedFileProvider.cs (1)
140catch (UnauthorizedAccessException)
Microsoft.Extensions.FileProviders.Physical (3)
Internal\FileSystemInfoHelper.cs (1)
62catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
PhysicalFilesWatcher.cs (2)
302ex is UnauthorizedAccessException) 354ex is UnauthorizedAccessException)
Microsoft.Maui.Resizetizer (1)
SkiaSharpTools.cs (1)
221 case UnauthorizedAccessException:
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
44Catch ex As UnauthorizedAccessException
Microsoft\VisualBasic\FileIO\FileSystem.vb (6)
980Catch ex As UnauthorizedAccessException 1023If (TypeOf ex Is IO.IOException OrElse TypeOf ex Is UnauthorizedAccessException OrElse 1044If (TypeOf ex Is IO.IOException OrElse TypeOf ex Is UnauthorizedAccessException OrElse 1064If (TypeOf ex Is IO.IOException OrElse TypeOf ex Is UnauthorizedAccessException OrElse 1340TypeOf ex Is UnauthorizedAccessException Then 1515TypeOf ex Is UnauthorizedAccessException Then
MSBuild (4)
ExceptionHandling.cs (2)
164return e is UnauthorizedAccessException 294|| e is UnauthorizedAccessException
FileUtilities.cs (1)
965catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
XMake.cs (1)
2311catch (UnauthorizedAccessException e)
MSBuildTaskHost (3)
ExceptionHandling.cs (2)
164return e is UnauthorizedAccessException 294|| e is UnauthorizedAccessException
FileUtilities.cs (1)
965catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1219[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UnauthorizedAccessException))]
netstandard (1)
netstandard.cs (1)
2220[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UnauthorizedAccessException))]
PresentationCore (5)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
74catch (Exception e) when (e is ArgumentException || e is UnauthorizedAccessException || e is COMException)
src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (2)
132catch (Exception e) when (retries > 0 && (e is IOException || e is UnauthorizedAccessException)) 161catch(System.UnauthorizedAccessException)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
1135|| e is UnauthorizedAccessException
System\Windows\Media\FontFamily.cs (1)
528catch (UnauthorizedAccessException)
PresentationFramework (5)
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
352/// <exception cref="UnauthorizedAccessException">stream cannot be written to</exception>
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
643{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)}}
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (3)
55{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)} } 143catch (UnauthorizedAccessException uae) 161catch (Exception e) when (suppressOtherExceptions && !(e is COMException) && !(e is UnauthorizedAccessException))
PresentationUI (8)
MS\Internal\Documents\Application\DocumentStream.cs (4)
436catch (UnauthorizedAccessException uae) 556catch (UnauthorizedAccessException) 691catch (UnauthorizedAccessException uae) 764catch (UnauthorizedAccessException io)
MS\Internal\Documents\Application\FileController.cs (3)
69catch (UnauthorizedAccessException uae) 115catch (UnauthorizedAccessException uae) 332catch (UnauthorizedAccessException uae)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
270(exception is UnauthorizedAccessException) ||
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (8)
69/// <exception cref="UnauthorizedAccessException"> 108/// <exception cref="UnauthorizedAccessException"> 146/// <exception cref="UnauthorizedAccessException"> 189/// <exception cref="UnauthorizedAccessException"> 227/// <exception cref="UnauthorizedAccessException"> 271/// <exception cref="UnauthorizedAccessException"> 320/// <exception cref="UnauthorizedAccessException"> 374/// <exception cref="UnauthorizedAccessException">
System.Diagnostics.Process (1)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
29catch (UnauthorizedAccessException) { }
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\TextWriterTraceListener.cs (1)
245catch (UnauthorizedAccessException)
System.Formats.Tar (6)
System\Formats\Tar\TarEntry.cs (2)
199/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 229/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception>
System\Formats\Tar\TarFile.cs (4)
164/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 205/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 249/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 292/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception>
System.IO.Compression.ZipFile (40)
System\IO\Compression\ZipFile.Create.Async.cs (6)
25/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 49/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 88/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 206/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 250/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 298/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory.
System\IO\Compression\ZipFile.Create.cs (6)
23/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 45/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 82/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 196/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 238/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 284/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory.
System\IO\Compression\ZipFile.Extract.Async.cs (8)
32/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 66/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 101/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 157/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 223/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 254/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 293/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 333/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception>
System\IO\Compression\ZipFile.Extract.cs (8)
30/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 62/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 95/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 149/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 209/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 238/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 275/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 313/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (2)
33/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory. -or- The caller does not have the 65/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory.
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (2)
33/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory. -or- The caller does not have the 64/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory.
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
29/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 61/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
27/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 57/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
17/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 45/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
14/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 42/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System.IO.IsolatedStorage (6)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (6)
51catch (UnauthorizedAccessException) 179catch (UnauthorizedAccessException e) 203catch (UnauthorizedAccessException e) 245catch (UnauthorizedAccessException) 261catch (UnauthorizedAccessException) 277catch (UnauthorizedAccessException)
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\LinuxIPv4InterfaceProperties.cs (1)
55catch (NetworkInformationException ex) when (ex.InnerException is IOException or UnauthorizedAccessException) { }
System\Net\NetworkInformation\LinuxNetworkInterface.cs (3)
38catch (UnauthorizedAccessException) 49catch (UnauthorizedAccessException) 60catch (Exception e) when (e is FileNotFoundException || e is UnauthorizedAccessException)
System.Private.CoreLib (59)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
95catch (UnauthorizedAccessException) { }
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\IO\File.cs (50)
116catch (UnauthorizedAccessException) { } 203/// <exception cref="UnauthorizedAccessException"> 235/// <exception cref="UnauthorizedAccessException"> 263/// <exception cref="UnauthorizedAccessException"> 288/// <exception cref="UnauthorizedAccessException"> 316/// <exception cref="UnauthorizedAccessException"> 347/// <exception cref="UnauthorizedAccessException"> 375/// <exception cref="UnauthorizedAccessException"> 400/// <exception cref="UnauthorizedAccessException"> 428/// <exception cref="UnauthorizedAccessException"> 459/// <exception cref="UnauthorizedAccessException"> 487/// <exception cref="UnauthorizedAccessException"> 512/// <exception cref="UnauthorizedAccessException"> 536/// <exception cref="UnauthorizedAccessException"> 560/// <exception cref="UnauthorizedAccessException"> 649/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 650/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 651/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 652/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 653/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 682/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 683/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 684/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 685/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 686/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 753/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 754/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 755/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 756/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 757/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 779/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 780/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 781/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 782/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 783/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 803/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 804/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 805/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 806/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 807/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 960/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 961/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 962/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 963/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 964/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 993/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 994/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 995/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 996/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 997/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
105catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (1)
55e is UnauthorizedAccessException ||
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (5)
115catch (UnauthorizedAccessException ex) 178catch (UnauthorizedAccessException) { } 298catch (UnauthorizedAccessException) { } 344catch (UnauthorizedAccessException) { } 371catch (UnauthorizedAccessException) { }
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
136catch (UnauthorizedAccessException e)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
872[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UnauthorizedAccessException))]
System.Security.Cryptography (2)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
664catch (UnauthorizedAccessException e)
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
251catch (UnauthorizedAccessException) { }
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ThemingScope.cs (1)
116catch (Exception e) when (e is UnauthorizedAccessException or IOException)
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
99catch (UnauthorizedAccessException ex)
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
99catch (UnauthorizedAccessException ex)
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
99catch (UnauthorizedAccessException ex)
Templates.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
99catch (UnauthorizedAccessException ex)