June 2003
Intermediate to advanced
714 pages
22h 8m
English
SecurityException
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.
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
SecurityException