Gets or sets the default partial trust visibility for code that is marked with the AllowPartiallyTrustedCallersAttribute (APTCA) attribute.
Assembly: mscorlib (in mscorlib.dll)
The following examples demonstrate how to use this property.
Default, unconditional APTCA:
Defaults to VisibleToAllHosts.
Explicit, unconditional APTCA:
The assembly can always be called by partial-trust code.
Explicit, conditional APTCA:
The assembly has been audited for partial trust, but it is not visible to partial-trust code by default. To make the assembly visible to partial-trust code, add it to the AppDomainSetup.PartialTrustVisibleAssemblies property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2