System.Security.Permissions.SecurityAction Enumeration

Assembly: Mscorlib.dll
Namespace: System.Security.Permissions
Summary
Specifies the security actions that can be performed using declarative security.
C# Syntax:
[Serializable]
public enum SecurityAction
Remarks
The following table describes the time that each of the security actions takes place and the targets that each supports.

Declaration of security action Time of action Targets supported
LinkDemand Just-in-time compilation Class, Method
InheritanceDemand Load time Class, Method
Demand Run time Class, Method
Assert Run time Class, Method
Deny Run time Class, Method
PermitOnly Run time Class, Method
RequestMinimum Grant time Assembly
RequestOptional Grant time Assembly
RequestRefuse Grant time Assembly

For additional information about attribute targets, see Attribute.

See also:
System.Security.Permissions Namespace

System.Security.Permissions.SecurityAction Member List:

Public Fields
Assert 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 (see the conceptual topic at MSDN: assert).
Demand All callers higher in the call stack are required to have been granted the permission specified by the current permission object (see the conceptual topic at MSDN: makingsecuritydemands).
Deny The ability to access the resource specified by the current permission object is denied to callers, even if they have been granted permission to access it (see the conceptual topic at MSDN: deny).
InheritanceDemand The derived class inheriting the class or overriding a method is required to have been granted the specified permission.
LinkDemand The immediate caller is required to have been granted the specified permission.
PermitOnly Only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources (see the conceptual topic at MSDN: permitonly).
RequestMinimum The request for the minimum permissions required for code to run. This action can only be used within the scope of the assembly.
RequestOptional The request for additional permissions that are optional (not required to run). This action can only be used within the scope of the assembly.
RequestRefuse The request that permissions that might be misused will not be granted to the calling code. This action can only be used within the scope of the assembly.

Hierarchy:


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.