(0) exportieren Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

System.Security.Policy Namespace

The System.Security.Policy namespace contains code groups, membership conditions, and evidence. These three types of classes are used to create the rules applied by the common language runtime security policy system. Evidence classes are the input to security policy and membership conditions are the switches; together these create policy statements and determine the granted permission set. Policy levels and code groups are the structure of the policy hierarchy. Code groups are the encapsulation of a rule and are arranged hierarchically in a policy level.

 ClassDescription
Public classAllMembershipConditionRepresents a membership condition that matches all code. This class cannot be inherited.
Public classApplicationDirectoryProvides the application directory as evidence for policy evaluation. This class cannot be inherited.
Public classApplicationDirectoryMembershipConditionDetermines whether an assembly belongs to a code group by testing its application directory. This class cannot be inherited.
Public classApplicationSecurityInfoHolds the security evidence for an application. This class cannot be inherited.
Public classApplicationSecurityManagerManages trust decisions for manifest activated applications.
Public classApplicationTrustEncapsulates security decisions about an application. This class cannot be inherited.
Public classApplicationTrustCollectionRepresents a collection of ApplicationTrust objects. This class cannot be inherited.
Public classApplicationTrustEnumeratorRepresents the enumerator for ApplicationTrust objects in the ApplicationTrustCollection collection.
Public classCodeConnectAccessSpecifies the network resource access that is granted to code.
Public classCodeGroupRepresents the abstract base class from which all implementations of code groups must derive.
Public classEvidenceDefines the set of information that constitutes input to security policy decisions. This class cannot be inherited.
Public classFileCodeGroupGrants permission to manipulate files located in the code assemblies to code assemblies that match the membership condition. This class cannot be inherited.
Public classFirstMatchCodeGroupAllows security policy to be defined by the union of the policy statement of a code group and that of the first child code group that matches. This class cannot be inherited.
Public classGacInstalledConfirms that a code assembly originates in the global assembly cache (GAC) as evidence for policy evaluation. This class cannot be inherited.
Public classGacMembershipConditionDetermines whether an assembly belongs to a code group by testing its global assembly cache membership. This class cannot be inherited.
Public classHashProvides evidence about the hash value for an assembly. This class cannot be inherited.
Public classHashMembershipConditionDetermines whether an assembly belongs to a code group by testing its hash value. This class cannot be inherited.
Public classNetCodeGroupGrants Web permission to the site from which the assembly was downloaded. This class cannot be inherited.
Public classPermissionRequestEvidenceDefines evidence that represents permission requests. This class cannot be inherited.
Public classPolicyExceptionThe exception that is thrown when policy forbids code to run.
Public classPolicyLevelRepresents the security policy levels for the common language runtime. This class cannot be inherited.
Public classPolicyStatementRepresents the statement of a CodeGroup describing the permissions and other information that apply to code with a particular set of evidence. This class cannot be inherited.
Public classPublisherProvides the Authenticode X.509v3 digital signature of a code assembly as evidence for policy evaluation. This class cannot be inherited.
Public classPublisherMembershipConditionDetermines whether an assembly belongs to a code group by testing its software publisher's Authenticode X.509v3 certificate. This class cannot be inherited.
Public classSiteProvides the Web site from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.
Public classSiteMembershipConditionDetermines whether an assembly belongs to a code group by testing the site from which it originated. This class cannot be inherited.
Public classStrongNameProvides the strong name of a code assembly as evidence for policy evaluation. This class cannot be inherited.
Public classStrongNameMembershipConditionDetermines whether an assembly belongs to a code group by testing its strong name. This class cannot be inherited.
Public classTrustManagerContextRepresents the context for the trust manager to consider when making the decision to run an application, and when setting up the security on a new AppDomain in which to run an application.
Public classUnionCodeGroupRepresents a code group whose policy statement is the union of the current code group's policy statement and the policy statement of all its matching child code groups. This class cannot be inherited.
Public classUrlProvides the URL from which a code assembly originates as evidence for policy evaluation. This class cannot be inherited.
Public classUrlMembershipConditionDetermines whether an assembly belongs to a code group by testing its URL. This class cannot be inherited.
Public classZoneProvides the security zone of a code assembly as evidence for policy evaluation. This class cannot be inherited.
Public classZoneMembershipConditionDetermines whether an assembly belongs to a code group by testing its zone of origin. This class cannot be inherited.

 InterfaceDescription
Public interfaceIApplicationTrustManagerDetermines whether an application should be executed and which set of permissions should be granted to the application.
Public interfaceIIdentityPermissionFactoryDefines the method that creates a new identity permission.
Public interfaceIMembershipConditionDefines the test to determine whether a code assembly is a member of a code group.

 EnumerationDescription
Public enumerationApplicationVersionMatchSpecifies how to match versions when locating application trusts in a collection.
Public enumerationPolicyStatementAttributeDefines special attribute flags for security policy on code groups.
Public enumerationTrustManagerUIContextSpecifies the type of user interface (UI) the trust manager should use for trust decisions.

Community-Beiträge

HINZUFÜGEN
Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur MSDN-Website zu erfahren. Wenn Sie sich zur Teilnahme entscheiden, wird Ihnen die Onlineumfrage angezeigt, sobald Sie die MSDN-Website verlassen.

Möchten Sie an der Umfrage teilnehmen?
Anzeigen:
© 2014 Microsoft