Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SecurityAction Enumeration

Note: This API is now obsolete.

Specifies the security actions that can be performed by using declarative security.

Namespace:  System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)
[ComVisibleAttribute(true)]
[ObsoleteAttribute("SecurityAction is no longer accessible to application code.")]
public enum SecurityAction
Member nameDescription
DemandAll callers that are higher in the call stack are required to have been granted the permission that is specified by the current permission object.
AssertThe calling code can access the resource that is identified by the current permission object, even if callers that are higher in the stack have not been granted permission to access the resource.
Deny Obsolete. The ability to access the resource that is specified by the current permission object is denied to callers, even if they have been granted permission to access it.
PermitOnlyOnly the resources that are specified by this permission object can be accessed, even if the code has been granted permission to access other resources.
Supported by Silverlight for Windows PhoneSupported by Xbox 360LinkDemandThe immediate caller is required to have been granted the specified permission.
InheritanceDemandThe derived class that inherits the class or overrides a method is required to have been granted the specified permission.
Supported by Silverlight for Windows PhoneSupported by Xbox 360RequestMinimum Obsolete. The request for the minimum permissions required for code to run. This action can be used only within the scope of the assembly.
RequestOptional Obsolete. The request for additional permissions that are optional (not required for code to run). This request implicitly refuses all other permissions that are not specifically requested. This action can be used only within the scope of the assembly.
RequestRefuse Obsolete. The request that permissions that might be misused will not be granted to the calling code. This action can be used only within the scope of the assembly.

This class supports the .NET Framework for Silverlight library code and is not intended to be used by Silverlight application code. The class has been marked as obsolete so that it will display a compilation warning. You can use this class in a Silverlight-based application, but it will have no effect.

Silverlight

Obsolete (compiler warning) in 5
Obsolete (compiler warning) in 4
Obsolete (compiler warning) in 3

Silverlight for Windows Phone

Obsolete (compiler warning) in Windows Phone OS 7.1
Obsolete (compiler warning) in Windows Phone OS 7.0

XNA Framework

Obsolete (compiler warning) in Xbox 360
Obsolete (compiler warning) in Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.