SecurityException Constructor (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.
Assembly: mscorlib (in mscorlib.dll)
The following table shows the property values set by this constructor.
The localized error message string specified by message.
The Type of the permission that failed, specified by type.
The demanded security permission, permission set, or permission set collection that failed.
Legacy Code Example
For an example of the use of a SecurityException constructor, see the example provided for the SecurityException(String, Object, Object, MethodInfo, Object, IPermission) constructor.
Available since 1.1