SecurityException Constructor

 

Initializes a new instance of the SecurityException class.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSecurityException()

Initializes a new instance of the SecurityException class with default properties.

System_CAPS_protmethodSecurityException(SerializationInfo^, StreamingContext)

Initializes a new instance of the SecurityException class with serialized data.

System_CAPS_pubmethodSecurityException(String^)

Initializes a new instance of the SecurityException class with a specified error message.

System_CAPS_pubmethodSecurityException(String^, AssemblyName^, PermissionSet^, PermissionSet^, MethodInfo^, SecurityAction, Object^, IPermission^, Evidence^)

Initializes a new instance of the SecurityException class for an exception caused by an insufficient grant set.

System_CAPS_pubmethodSecurityException(String^, Exception^)

Initializes a new instance of the SecurityException class with a specified error message and a reference to the inner exception that is the cause of this exception.

System_CAPS_pubmethodSecurityException(String^, Object^, Object^, MethodInfo^, Object^, IPermission^)

Initializes a new instance of the SecurityException class for an exception caused by a Deny on the stack.

System_CAPS_pubmethodSecurityException(String^, Type^)

Initializes a new instance of the SecurityException class with a specified error message and the permission type that caused the exception to be thrown.

System_CAPS_pubmethodSecurityException(String^, Type^, String^)

Initializes a new instance of the SecurityException class with a specified error message, the permission type that caused the exception to be thrown, and the permission state.

For an example of the use of a SecurityException constructor, see the example provided for the SecurityException(String^, Object^, Object^, MethodInfo^, Object^, IPermission^) constructor.

Return to top
Show: