24 [Obsolete(
"AppDomain policy levels are obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
67 if (applicationEvidence ==
null)
72 if (hostEvidence ==
null)
77 if (activationContext ==
null)
84 applicationTrust =
null;
86 if (applicationTrust ==
null)
95 return applicationTrust;
105 if (evidence ==
null)
121 return SecurityManager.PolicyManager.CodeGroupResolve(evidence, systemPolicy:
false);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Encapsulates security decisions about an application. This class cannot be inherited.
Describes a set of security permissions applied to code. This class cannot be inherited.
virtual ApplicationTrust DetermineApplicationTrust(Evidence applicationEvidence, Evidence activatorEvidence, TrustManagerContext context)
Determines whether an application should be executed.
virtual Type [] GetHostSuppliedAppDomainEvidenceTypes()
Determines which evidence types the host can supply for the application domain, if requested.
PermissionSet DefaultRequestSet
Gets or sets the default permission set.
PermissionSet PermissionSet
Gets or sets the T:System.Security.PermissionSet of the policy statement.
Identifies the activation context for the current application. This class cannot be inherited.
Represents the security policy levels for the common language runtime. This class cannot be inherited...
HostSecurityManagerOptions
Specifies the security policy components to be used by the host security manager.
Manages trust decisions for manifest-activated applications.
bool IsSubsetOf(PermissionSet target)
Determines whether the current T:System.Security.PermissionSet is a subset of the specified T:System....
Provides a base class from which all objects to be used as evidence must derive.
static AppDomain CurrentDomain
Gets the current application domain for the current T:System.Threading.Thread.
bool IsHomogenous
Gets a value that indicates whether the current application domain has a set of permissions that is g...
Represents an application domain, which is an isolated environment where applications execute....
Represents the context for the trust manager to consider when making the decision to run an applicati...
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides information about, and means to manipulate, the current environment and platform....
virtual PolicyLevel DomainPolicy
When overridden in a derived class, gets the security policy for the current application domain.
Represents a collection that can contain many different types of permissions.
virtual Evidence ProvideAppDomainEvidence(Evidence inputEvidence)
Provides the application domain evidence for an assembly being loaded.
ApplicationIdentity ApplicationIdentity
Gets the application identity for a manifest-activated application.
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Represents type declarations: class types, interface types, array types, value types,...
ApplicationTrust ApplicationTrust
Gets information describing permissions granted to an application and whether the application has a t...
ApplicationVersionMatch
Specifies how to match versions when locating application trusts in a collection.
bool IsApplicationTrustedToRun
Gets or sets a value indicating whether the application has the required permission grants and is tru...
ApplicationIdentity ApplicationIdentity
Gets or sets the application identity for the application trust object.
Provides data for manifest-based activation of an application. This class cannot be inherited.
The exception that is thrown when one of the arguments provided to a method is not valid.
virtual EvidenceBase GenerateAssemblyEvidence(Type evidenceType, Assembly assembly)
Requests a specific evidence type for the assembly.
virtual Type [] GetHostSuppliedAssemblyEvidenceTypes(Assembly assembly)
Determines which evidence types the host can supply for the assembly, if requested.
virtual EvidenceBase GenerateAppDomainEvidence(Type evidenceType)
Requests a specific evidence type for the application domain.
PermissionState
Specifies whether a permission should have all or no access to resources at creation.
Defines the set of information that constitutes input to security policy decisions....
Confirms that a code assembly originates in the global assembly cache (GAC) as evidence for policy ev...
virtual HostSecurityManagerOptions Flags
Gets the flag representing the security policy components of concern to the host.
ActivationContext ActivationContext
Gets the activation context for manifest-based activation of an application.
Specifies that the class can be serialized.
virtual Evidence ProvideAssemblyEvidence(Assembly loadedAssembly, Evidence inputEvidence)
Provides the assembly evidence for an assembly being loaded.
The exception that is thrown when a method call is invalid for the object's current state.
Provides the main access point for classes interacting with the security system. This class cannot be...
virtual PermissionSet ResolvePolicy(Evidence evidence)
Determines what permissions to grant to code based on the specified evidence.
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
SecurityPermissionFlag
Specifies access flags for the security permission object.
Holds the security evidence for an application. This class cannot be inherited.
Allows the control and customization of security behavior for application domains.
PolicyStatement DefaultGrantSet
Gets or sets the policy statement defining the default grant set.