Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PolicyLevel Methods

The PolicyLevel type exposes the following members.

  Name Description
Public method AddFullTrustAssembly(StrongName) Obsolete. Adds a StrongNameMembershipCondition corresponding to the specified StrongName to the list of StrongNameMembershipCondition objects used to determine whether an assembly is a member of the group of assemblies that should not be evaluated.
Public method AddFullTrustAssembly(StrongNameMembershipCondition) Obsolete. Adds the specified StrongNameMembershipCondition to the list of StrongNameMembershipCondition objects used to determine whether an assembly is a member of the group of assemblies that should not be evaluated.
Public method AddNamedPermissionSet Adds a NamedPermissionSet to the current policy level.
Public method ChangeNamedPermissionSet Replaces a NamedPermissionSet in the current policy level with the specified PermissionSet.
Public method Static member CreateAppDomainLevel Obsolete. Creates a new policy level for use at the application domain policy level.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method FromXml Reconstructs a security object with a given state from an XML encoding.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetNamedPermissionSet Returns the NamedPermissionSet in the current policy level with the specified name.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Recover Replaces the configuration file for this 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.
Public method RemoveFullTrustAssembly(StrongName) Obsolete. Removes an assembly with the specified StrongName from the list of assemblies the policy level uses to evaluate policy.
Public method RemoveFullTrustAssembly(StrongNameMembershipCondition) Obsolete. Removes an assembly with the specified StrongNameMembershipCondition from the list of assemblies the policy level uses to evaluate policy.
Public method RemoveNamedPermissionSet(NamedPermissionSet) Removes the specified NamedPermissionSet from the current policy level.
Public method RemoveNamedPermissionSet(String) Removes the NamedPermissionSet with the specified name from the current policy level.
Public method Reset Returns the current policy level to the default state.
Public method Resolve Resolves policy based on evidence for the policy level, and returns the resulting PolicyStatement.
Public method ResolveMatchingCodeGroups Resolves policy at the policy level and returns the root of a code group tree that matches the evidence.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ToXml Creates an XML encoding of the security object and its current state.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.