Name

SecurityException

Synopsis

public class SecurityException : SystemException {
// Public Constructors
   public SecurityException(  );
   public SecurityException(string message);
   public SecurityException(string message, Exception inner);
   public SecurityException(string message, Type type);
   public SecurityException(string message, Type type, string state);
// Protected Constructors
   protected SecurityException(System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);
// Public Instance Properties
   public string GrantedSet{get; }
   public string PermissionState{get; }
   public Type PermissionType{get; }
   public string RefusedSet{get; }
// Public Instance Methods
   public override void GetObjectData(// overrides Exception
        System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
   public override string ToString(  );
 // overrides Exception
}

SecurityException is thrown when code tries to perform an action that it does not have permission to perform.

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException SecurityException

Get Programming .NET Security 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.