Name
UnauthorizedAccessException
Synopsis
This exception signals a failed attempt to access a resource (for example, trying to delete a read-only file).
public class UnauthorizedAccessException : SystemException { // Public Constructors public method UnauthorizedAccessException(); public method UnauthorizedAccessException(string message); public method UnauthorizedAccessException(string message, Exception inner); // Protected Constructors protected method UnauthorizedAccessException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context); }
Hierarchy
Object→Exception(System.Runtime.Serialization.ISerializable)→SystemException→UnauthorizedAccessException
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.