AppDomainSetup.ApplicationTrust Property
Gets or sets an object containing security and trust information.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Security.Policy.ApplicationTrustAn object that contains security and trust information.
| Exception | Condition |
|---|---|
| InvalidOperationException | The property is set to an ApplicationTrust object whose application identity does not match the application identity of the ActivationArguments object returned by the ActivationArguments property. No exception is thrown if the ActivationArguments property is null. |
| ArgumentNullException | The property is set to null. |
This property is null when the AppDomainSetup is created. Once changed, it cannot be reset to a null reference.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.