<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

ApplicationTrust

Encapsulates security decisions about an application. This class cannot be inherited.

Gets or sets the application identity for the application trust object.

public PolicyStatement DefaultGrantSet { get; set; }

Gets or sets the policy statement defining the default grant set.

public object ExtraInfo { get; set; }

Gets or sets extra security information about the application.

Gets the list of full-trust assemblies for this application trust.

public bool IsApplicationTrustedToRun { get; set; }

Gets or sets a value indicating whether the application has the required permission grants and is trusted to run.

public bool Persist { get; set; }

Gets or sets a value indicating whether application trust information is persisted.

Initializes a new instance of the ApplicationTrust class.

Initializes a new instance of the ApplicationTrust class with an ApplicationIdentity.

public ApplicationTrust(PermissionSet defaultGrantSet, IEnumerable<StrongName> fullTrustAssemblies)

Initializes a new instance of the ApplicationTrust class using the provided grant set and collection of full-trust assemblies.

public void FromXml(SecurityElement element)

Reconstructs an ApplicationTrust object with a given state from an XML encoding.

Creates an XML encoding of the ApplicationTrust object and its current state.