Exportar (0) Imprimir
Expandir todo

SecurityPermissionFlag Enumeration

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)

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

Member nameDescription
Supported by Silverlight for Windows PhoneSupported by Xbox 360NoFlagsNo security access.
Supported by Silverlight for Windows PhoneSupported by Xbox 360AssertionAbility to assert that all the callers of this code have the requisite permission for the operation.
Supported by Silverlight for Windows PhoneSupported by Xbox 360UnmanagedCodeAbility 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 360SkipVerificationAbility 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 360ExecutionPermission for the code to run. Without this permission, managed code will not be executed.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ControlThreadAbility to use certain advanced operations on threads.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ControlEvidenceAbility 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 360ControlPolicyAbility 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 360SerializationFormatterAbility to provide serialization services. This flag is used by serialization formatters.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ControlDomainPolicyAbility to specify domain policy.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ControlPrincipalAbility to manipulate the principal object.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ControlAppDomainAbility to create and manipulate an AppDomain.
Supported by Silverlight for Windows PhoneSupported by Xbox 360RemotingConfigurationPermission to configure remoting types and channels.
Supported by Silverlight for Windows PhoneSupported by Xbox 360InfrastructurePermission 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 360BindingRedirectsPermission 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 360AllFlagsThe unrestricted state of the permission.

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.

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft