Export (0) Print
Expand All

UnauthorizedAccessException Class

The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.

For a list of all members of this type, see UnauthorizedAccessException Members.

System.Object
   System.Exception
      System.SystemException
         System.UnauthorizedAccessException

[Visual Basic]
<Serializable>
Public Class UnauthorizedAccessException
   Inherits SystemException
[C#]
[Serializable]
public class UnauthorizedAccessException : SystemException
[C++]
[Serializable]
public __gc class UnauthorizedAccessException : public
   SystemException
[JScript]
public
   Serializable
class UnauthorizedAccessException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

UnauthorizedAccessException uses the HRESULT COR_E_UNAUTHORIZEDACCESS, which has the value 0x80070005.

Requirements

Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

UnauthorizedAccessException Members | System Namespace | Exception | Handling and Throwing Exceptions

Show:
© 2014 Microsoft