SecurityException Properties

The SecurityException type exposes the following members.

  NameDescription
Public property Action Gets or sets the security action that caused the exception.
Public property Data Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.)
Public property Demanded Gets or sets the demanded security permission, permission set, or permission set collection that failed.
Public property DenySetInstance Gets or sets the denied security permission, permission set, or permission set collection that caused a demand to fail.
Public property FailedAssemblyInfo Gets or sets information about the failed assembly.
Public property FirstPermissionThatFailed Gets or sets the first permission in a permission set or permission set collection that failed the demand.
Public property GrantedSet Gets or sets the granted permission set of the assembly that caused the SecurityException.
Public property HelpLink Gets or sets a link to the help file associated with this exception. (Inherited from Exception.)
Protected property Supported by the .NET Compact Framework Supported by the XNA Framework HResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework InnerException Gets the Exception instance that caused the current exception. (Inherited from Exception.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Message Gets a message that describes the current exception. (Inherited from Exception.)
Public property Method Gets or sets the information about the method associated with the exception.
Public property PermissionState Gets or sets the state of the permission that threw the exception.
Public property PermissionType Gets or sets the type of the permission that failed.
Public property PermitOnlySetInstance Gets 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.
Public property RefusedSet Gets or sets the refused permission set of the assembly that caused the SecurityException.
Public property Source Gets or sets the name of the application or the object that causes the error. (Inherited from Exception.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework StackTrace Gets a string representation of the frames on the call stack at the time the current exception was thrown. (Inherited from Exception.)
Public property TargetSite Gets the method that throws the current exception. (Inherited from Exception.)
Public property Url Gets or sets the URL of the assembly that caused the exception.
Public property Zone Gets or sets the zone of the assembly that caused the exception.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft