PolicyLevel.CreateAppDomainLevel Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
AppDomain policy levels are obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.
Attention
AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.
Crée un niveau de stratégie à utiliser au niveau de la stratégie de domaine d’application.
public:
static System::Security::Policy::PolicyLevel ^ CreateAppDomainLevel();
[System.Obsolete("AppDomain policy levels are obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Security.Policy.PolicyLevel CreateAppDomainLevel();
public static System.Security.Policy.PolicyLevel CreateAppDomainLevel();
[System.Obsolete("AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Security.Policy.PolicyLevel CreateAppDomainLevel();
[<System.Obsolete("AppDomain policy levels are obsolete. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member CreateAppDomainLevel : unit -> System.Security.Policy.PolicyLevel
static member CreateAppDomainLevel : unit -> System.Security.Policy.PolicyLevel
[<System.Obsolete("AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member CreateAppDomainLevel : unit -> System.Security.Policy.PolicyLevel
Public Shared Function CreateAppDomainLevel () As PolicyLevel
Retours
Nouvellement créé PolicyLevel.
- Attributs
Remarques
Avertissement
La sécurité d’accès du code (CAS) a été déconseillée dans toutes les versions du .NET Framework et de .NET. Les versions récentes de .NET n’honorent pas les annotations CAS et produisent des erreurs si les API liées à CAS sont utilisées. Les développeurs doivent rechercher d’autres moyens d’accomplir des tâches de sécurité.
Cette méthode crée un nouveau PolicyLevel avec « Label AppDomain ». Le nouveau PolicyLevel contiendra initialement les mêmes NamedPermissionSet objets que dans la stratégie d’ordinateur par défaut et aura un seul groupe de code racine qui accorde FullTrust à tout le code.