Name
SecurityException
Synopsis
public class SecurityException : SystemException { // Public Constructors public SecurityException( ); public SecurityException(stringmessage
); public SecurityException(stringmessage
, Exceptioninner
); public SecurityException(stringmessage
, Typetype
); public SecurityException(stringmessage
, Typetype
, stringstate
); // Protected Constructors protected SecurityException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); // 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.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); 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.