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\net11.0\System.Security.AccessControl.notsupported.cs (1)
441public sealed partial class PrivilegeNotHeldException : System.UnauthorizedAccessException, System.Runtime.Serialization.ISerializable
43 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);
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 (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\Compression\ZipFile.Create.cs (1)
470throw new UnauthorizedAccessException(SR.Format(SR.IO_DirectoryNotAllowed, archiveFileName));
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 (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);
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)
183throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
47throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer);
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\RequestSecurityToken.cs (1)
448throw new UnauthorizedAccessException(SRP.UnauthorizedAccess_MemStreamBuffer);
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
588throw new UnauthorizedAccessException(SRP.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();
196 references to UnauthorizedAccessException
aspire (8)
Commands\CacheCommand.cs (4)
61catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 74catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 92catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 105catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
DotNet\DotNetCliRunner.cs (2)
915catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 966catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Projects\SolutionLocator.cs (2)
58catch (UnauthorizedAccessException) 71catch (UnauthorizedAccessException)
CSharpSyntaxGenerator (1)
Program.cs (1)
180catch (UnauthorizedAccessException)
dotnet-getdocument (2)
Commands\InvokeCommand.cs (2)
170catch (UnauthorizedAccessException) 178catch (UnauthorizedAccessException)
dotnet-svcutil-lib (1)
CodeSerializer.cs (1)
84catch (System.UnauthorizedAccessException)
InProcessWebSite (1)
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.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.CodeAnalysis.Test.Utilities (2)
TempFiles\DisposableFile.cs (2)
35catch (UnauthorizedAccessException) 50catch (UnauthorizedAccessException)
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1468Assert.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)
332ex 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
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.Drawing.Common (1)
System\Drawing\Image.cs (1)
942is 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. 50/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 90/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 209/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 254/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 303/// <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> 67/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 103/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 160/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 227/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 259/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 299/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 340/// <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> 62/// <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> 46/// <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)
39catch (UnauthorizedAccessException) 50catch (UnauthorizedAccessException) 61catch (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)
115catch (UnauthorizedAccessException) { } 202/// <exception cref="UnauthorizedAccessException"> 234/// <exception cref="UnauthorizedAccessException"> 262/// <exception cref="UnauthorizedAccessException"> 287/// <exception cref="UnauthorizedAccessException"> 315/// <exception cref="UnauthorizedAccessException"> 346/// <exception cref="UnauthorizedAccessException"> 374/// <exception cref="UnauthorizedAccessException"> 399/// <exception cref="UnauthorizedAccessException"> 427/// <exception cref="UnauthorizedAccessException"> 458/// <exception cref="UnauthorizedAccessException"> 486/// <exception cref="UnauthorizedAccessException"> 511/// <exception cref="UnauthorizedAccessException"> 535/// <exception cref="UnauthorizedAccessException"> 559/// <exception cref="UnauthorizedAccessException"> 648/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 649/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 650/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 651/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 652/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 681/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 682/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 683/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 684/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 685/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 752/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 753/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 754/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 755/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 756/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 778/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 779/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 780/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 781/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 782/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 802/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 803/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 804/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 805/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 806/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 959/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 960/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 961/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 962/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 963/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 992/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 993/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 994/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 995/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 996/// <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\net11.0\System.Runtime.Forwards.cs (1)
879[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)
100catch (UnauthorizedAccessException ex)
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
100catch (UnauthorizedAccessException ex)
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
100catch (UnauthorizedAccessException ex)
Templates.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
100catch (UnauthorizedAccessException ex)