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 | |
---|---|---|
NoFlags | No security access. | |
Assertion | Ability to assert that all the callers of this code have the requisite permission for the operation. | |
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. |
|
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. |
|
Execution | Permission for the code to run. Without this permission, managed code will not be executed. | |
ControlThread | Ability to use certain advanced operations on threads. | |
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. |
|
ControlPolicy | Ability to view and modify policy.
This is a powerful permission that should be granted only to highly trusted code. |
|
SerializationFormatter | Ability to provide serialization services. This flag is used by serialization formatters. | |
ControlDomainPolicy | Ability to specify domain policy. | |
ControlPrincipal | Ability to manipulate the principal object. | |
ControlAppDomain | Ability to create and manipulate an AppDomain. | |
RemotingConfiguration | Permission to configure remoting types and channels. | |
Infrastructure | Permission to plug code into the common language runtime infrastructure, such as adding remoting context sinks, envoy sinks, and dynamic sinks. | |
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. | |
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.