SecurityPermissionFlag Enumeration
Collapse the table of content
Expand the table of content

SecurityPermissionFlag Enumeration

Note: This API is now obsolete.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

[ObsoleteAttribute("SecurityPermissionFlag is no longer accessible to application code.")]
public enum SecurityPermissionFlag

Member nameDescription
AllFlagsThe unrestricted state of the permission.
AssertionAbility to assert that all the callers of this code have the requisite permission for the operation.
BindingRedirectsPermission 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.
ControlAppDomainAbility to create and manipulate an AppDomain.
ControlDomainPolicyAbility to specify domain policy.
ControlEvidenceAbility 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.

ControlPolicyAbility to view and modify policy.

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

ControlPrincipalAbility to manipulate the principal object.
ControlThreadAbility to use certain advanced operations on threads.
ExecutionPermission for the code to run. Without this permission, managed code will not be executed.
InfrastructurePermission to plug code into the common language runtime infrastructure, such as adding remoting context sinks, envoy sinks, and dynamic sinks.
NoFlagsNo security access.
RemotingConfigurationPermission to configure remoting types and channels.
SerializationFormatterAbility to provide serialization services. This flag is used by serialization formatters.
SkipVerificationAbility 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.

UnmanagedCodeAbility 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.

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

Windows Phone OS

Obsolete (compiler warning) in 8.1
Obsolete (compiler warning) in 8.0
Obsolete (compiler warning) in 7.1
Obsolete (compiler warning) in 7.0

Windows Phone

© 2018 Microsoft