This documentation is archived and is not being maintained.

PolicyLevel.CreateAppDomainLevel Method

Creates a new policy level for use at the application domain policy level.

[Visual Basic]
Public Shared Function CreateAppDomainLevel() As PolicyLevel
public static PolicyLevel CreateAppDomainLevel();
public: static PolicyLevel* CreateAppDomainLevel();
public static function CreateAppDomainLevel() : PolicyLevel;

Return Value

The newly created PolicyLevel.


This method creates a new PolicyLevel with the Label "AppDomain". The new PolicyLevel will initially contain the same NamedPermissionSet objects as in the default computer policy, and will have a single root code group that grants FullTrust to all code.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

PolicyLevel Class | PolicyLevel Members | System.Security.Policy Namespace | AppDomain.SetAppDomainPolicy