Export (0) Print
Expand All

SecurityException Constructor

Initializes a new instance of the SecurityException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method SecurityException() Initializes a new instance of the SecurityException class with default properties.
Public method SecurityException(String) Initializes a new instance of the SecurityException class with a specified error message.
Protected method SecurityException(SerializationInfo, StreamingContext) Initializes a new instance of the SecurityException class with serialized data.
Public method SecurityException(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.
Public method SecurityException(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.
Public method SecurityException(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.
Public method SecurityException(String, Object, Object, MethodInfo, Object, IPermission) Initializes a new instance of the SecurityException class for an exception caused by a Deny on the stack.
Public method SecurityException(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.
Top

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft