UnauthorizedAccessException Class
.NET Framework 3.0
The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [ComVisibleAttribute(true)] public ref class UnauthorizedAccessException : public SystemException
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public class UnauthorizedAccessException extends SystemException
SerializableAttribute ComVisibleAttribute(true) public class UnauthorizedAccessException extends SystemException
Not applicable.
The reasons for the exception can be found in the details of the exception object. How to: Use the Exception Assistant
How to: Use the Exception Assistant
How to: Use the Exception Assistant
How to: Use the Exception Assistant
UnauthorizedAccessException uses the HRESULT COR_E_UNAUTHORIZEDACCESS, which has the value 0x80070005.
System.Object
System.Exception
System.SystemException
System.UnauthorizedAccessException
System.Security.AccessControl.PrivilegeNotHeldException
System.Exception
System.SystemException
System.UnauthorizedAccessException
System.Security.AccessControl.PrivilegeNotHeldException
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: