System.Security.Policy.PolicyLevel: Method Members

The methods of System.Security.Policy.PolicyLevel are listed below. For a list of all members, see the PolicyLevel Members list.

See Also: Inherited members from System.Object

Public Methods

AddFullTrustAssembly(StrongName)

Adds a System.Security.Policy.StrongNameMembershipCondition corresponding to the specified System.Security.Policy.StrongName to the list of System.Security.Policy.StrongNameMembershipCondition objects used to determine whether an assembly is a member of the group of assemblies that should not be evaluated.

AddFullTrustAssembly(StrongNameMembershipCondition)

Adds the specified System.Security.Policy.StrongNameMembershipCondition to the list of System.Security.Policy.StrongNameMembershipCondition objects used to determine whether an assembly is a member of the group of assemblies that should not be evaluated.

AddNamedPermissionSet(System.Security.NamedPermissionSet)

Adds a System.Security.NamedPermissionSet to the current policy level.

ChangeNamedPermissionSet(string, System.Security.PermissionSet) : System.Security.NamedPermissionSet

Replaces a System.Security.NamedPermissionSet in the current policy level with the specified System.Security.PermissionSet.

static
CreateAppDomainLevel() : PolicyLevel

Creates a new policy level for use at the application domain policy level.

FromXml(System.Security.SecurityElement)

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

GetNamedPermissionSet(string) : System.Security.NamedPermissionSet

Returns the System.Security.NamedPermissionSet in the current policy level with the specified name.

Recover()

Replaces the configuration file for this System.Security.Policy.PolicyLevel with the last backup (reflecting the state of policy prior to the last time it was saved) and returns it to the state of the last save.

RemoveFullTrustAssembly(StrongName)

Removes an assembly with the specified System.Security.Policy.StrongName from the list of assemblies the policy level uses to evaluate policy.

RemoveFullTrustAssembly(StrongNameMembershipCondition)

Removes an assembly with the specified System.Security.Policy.StrongNameMembershipCondition from the list of assemblies the policy level uses to evaluate policy.

RemoveNamedPermissionSet(System.Security.NamedPermissionSet) : System.Security.NamedPermissionSet

Removes the specified System.Security.NamedPermissionSet from the current policy level.

RemoveNamedPermissionSet(string) : System.Security.NamedPermissionSet

Removes the System.Security.NamedPermissionSet with the specified name from the current policy level.

Reset()

Returns the current policy level to the default state.

Resolve(Evidence) : PolicyStatement

Resolves policy based on evidence for the policy level, and returns the resulting System.Security.Policy.PolicyStatement.

ResolveMatchingCodeGroups(Evidence) : CodeGroup

Resolves policy at the policy level and returns the root of a code group tree that matches the evidence.

ToXml() : System.Security.SecurityElement

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