Security Action Enum
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the security actions that can be performed using declarative security.
public enum class DeclarativeSecurityAction
public enum DeclarativeSecurityAction
type DeclarativeSecurityAction =
Public Enum DeclarativeSecurityAction
The calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource.
Check that all callers in the call chain have been granted the specified permission.
Without further checks refuse Demand for the specified permission.
The derived class inheriting the class or overriding a method is required to have the specified permission.
Check that the immediate caller has been granted the specified permission.
No declarative security action.
Without further checks, refuse the demand for all permissions other than those specified.
Request the minimum permissions required for code to run. This action can only be used within the scope of the assembly.
Request additional permissions that are optional (not required to run). This request implicitly refuses all other permissions not specifically requested. This action can only be used within the scope of the assembly.
Request that permissions that might be misused not be granted to the calling code. This action can only be used within the scope of the assembly.