System.Security.SecurityManager.PolicyHierarchy Method

Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.

Syntax

[System.Obsolete]
public static IEnumerator PolicyHierarchy ()

Returns

An enumerator for System.Security.Policy.PolicyLevel objects that compose the security policy hierarchy.

Remarks

The returned enumerator provides successive System.Security.Policy.PolicyLevel objects that represent the policy at the respective (machine, user, enterprise, application domain) level of the hierarchy. These objects are the live policy objects; altering these objects can have unpredictable results.

Minimum policy hierarchy consists of a machine level, an enterprise level, and a user level. However, the hierarchy can include additional levels.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0