Share via


SecurityPermissionFlag Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Note: This API is now obsolete.

Specifies access flags for the security permission object.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<FlagsAttribute> _
<ComVisibleAttribute(True)> _
<ObsoleteAttribute("SecurityPermissionFlag is no longer accessible to application code.")> _
Public Enumeration SecurityPermissionFlag
[FlagsAttribute]
[ComVisibleAttribute(true)]
[ObsoleteAttribute("SecurityPermissionFlag is no longer accessible to application code.")]
public enum SecurityPermissionFlag

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 NoFlags No security access.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Assertion Ability to assert that all the callers of this code have the requisite permission for the operation.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 UnmanagedCode Ability to call unmanaged code.

Because unmanaged code potentially allows other permissions to be bypassed, this is a dangerous permission that should be granted only to highly trusted code. It is used for applications such as calling native code by using platform invoke or COM interop.

Supported by Silverlight for Windows PhoneSupported by Xbox 360 SkipVerification Ability to skip verification of code in this assembly. Code that is unverifiable can be run if this permission is granted.

This is a powerful permission that should be granted only to highly trusted code.

Supported by Silverlight for Windows PhoneSupported by Xbox 360 Execution Permission for the code to run. Without this permission, managed code will not be executed.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 ControlThread Ability to use certain advanced operations on threads.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 ControlEvidence Ability to provide evidence, including the ability to alter the evidence provided by the common language runtime.

This is a powerful permission that should be granted only to highly trusted code.

Supported by Silverlight for Windows PhoneSupported by Xbox 360 ControlPolicy Ability to view and modify policy.

This is a powerful permission that should be granted only to highly trusted code.

Supported by Silverlight for Windows PhoneSupported by Xbox 360 SerializationFormatter Ability to provide serialization services. This flag is used by serialization formatters.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 ControlDomainPolicy Ability to specify domain policy.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 ControlPrincipal Ability to manipulate the principal object.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 ControlAppDomain Ability to create and manipulate an AppDomain.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 RemotingConfiguration Permission to configure remoting types and channels.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Infrastructure Permission to plug code into the common language runtime infrastructure, such as adding remoting context sinks, envoy sinks, and dynamic sinks.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 BindingRedirects Permission to perform explicit binding redirection in the application configuration file. This includes redirection of .NET Framework assemblies that have been unified as well as other assemblies found outside the .NET Framework.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 AllFlags The unrestricted state of the permission.

Remarks

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.

Version Information

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

Platforms

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