Export (0) Print
Expand All

HostSecurityManager.DomainPolicy Property

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

Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft