SecurityException Constructor (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.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- message
-
Type:
System::String^
The error message that explains the reason for the exception.
- type
-
Type:
System::Type^
The type of the permission that caused the exception to be thrown.
The following table shows the property values set by this constructor.
Property | Value |
|---|---|
The localized error message string specified by message. | |
The Type of the permission that failed, specified by type. |
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