This documentation is archived and is not being maintained.

HostSecurityManager.DomainPolicy Property

Note: This property is new in the .NET Framework version 2.0.

When overridden in a derived class, gets the security policy for the current application domain.

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)

public virtual PolicyLevel DomainPolicy { get; }
/** @property */
public PolicyLevel get_DomainPolicy ()

public function get DomainPolicy () : PolicyLevel

Property Value

A PolicyLevel object. The default is a null reference (Nothing in Visual Basic).

This property can be overridden in a derived class. The base implementation always returns a null reference (Nothing in Visual Basic).

This property is called at AppDomain creation time. It allows a host to supply a policy for the current AppDomain. A policy level consists of the following:

  • A set of code groups organized into a single rooted tree.

  • A set of named permission sets that are referenced by the code groups to specify permissions to be granted to code belonging to the code group.

  • A list of fully trusted assemblies.

NoteImportant:

See the Notes to Inheritors for the HostSecurityManager class for critical implementation information.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: