Click or drag to resize

PolicyViolationException Properties

The PolicyViolationException type exposes the following members.

Properties
 NameDescription
Public propertyDataGets a collection of key/value pairs that provide additional user-defined information about the exception.
(Inherited from Exception)
Public propertyDemandedGets or sets the demanded security permission, permission set, or permission set collection that failed.
(Inherited from SecurityException)
Public propertyDenySetInstanceGets or sets the denied security permission, permission set, or permission set collection that caused a demand to fail.
(Inherited from SecurityException)
Public propertyDetail The details of the violation
Public propertyFailedAssemblyInfoGets or sets information about the failed assembly.
(Inherited from SecurityException)
Public propertyGrantedSetGets or sets the granted permission set of the assembly that caused the SecurityException.
(Inherited from SecurityException)
Public propertyHelpLinkGets or sets a link to the help file associated with this exception.
(Inherited from Exception)
Public propertyHResultGets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
(Inherited from Exception)
Public propertyInnerExceptionGets the Exception instance that caused the current exception.
(Inherited from Exception)
Public propertyMessage Gets a message that describes the current exception.
(Overrides ExceptionMessage)
Public propertyMethodGets or sets the information about the method associated with the exception.
(Inherited from SecurityException)
Public propertyPermissionStateGets or sets the state of the permission that threw the exception.
(Inherited from SecurityException)
Public propertyPermissionTypeGets or sets the type of the permission that failed.
(Inherited from SecurityException)
Public propertyPermitOnlySetInstanceGets or sets the permission, permission set, or permission set collection that is part of the permit-only stack frame that caused a security check to fail.
(Inherited from SecurityException)
Public propertyPolicy Gets the policy that was violated
Public propertyPolicyDecision Gets the policy decision.
Public propertyPolicyId Gets the policy identifier.
Public propertyPolicyName Policy name
Public propertyPrincipal Gets the principal that violated the policy
Public propertyRefusedSetGets or sets the refused permission set of the assembly that caused the SecurityException.
(Inherited from SecurityException)
Public propertySourceGets or sets the name of the application or the object that causes the error.
(Inherited from Exception)
Public propertyStackTraceGets a string representation of the immediate frames on the call stack.
(Inherited from Exception)
Public propertyTargetSiteGets the method that throws the current exception.
(Inherited from Exception)
Public propertyUrlGets or sets the URL of the assembly that caused the exception.
(Inherited from SecurityException)
Top
See Also