Represents a code group membership condition and the permissions that are granted to code satisfying that condition.
mscorlib.dll
A PolicyStatement associates a membership condition with a set of permissions. When code satisfies the membership condition, the associated permissions are granted to that code.
The PolicyStatement class is immutable, meaning its properties cannot be changed after it is created. This ensures that the security policy remains consistent.
Initializes a new instance of the PolicyStatement class with the specified membership condition and permissions.
The membership condition to evaluate.
The set of permissions granted to code that satisfies the membership condition.
Initializes a new instance of the PolicyStatement class with the specified membership condition and permission set.
The membership condition to evaluate.
The set of permissions granted to code that satisfies the membership condition.
Gets the membership condition associated with the policy statement.
Gets the set of permissions granted by the policy statement.
Creates and returns an identical copy of the current policy statement.
Returns: A new PolicyStatement object that is a copy of the current object.
Determines whether the specified object is equal to the current object.
Parameters:
The object to compare with the current object.
Returns:
true if the specified object is equal to the current object; otherwise, false.
Serves as the default hash function.
Returns: A hash code for the current object.
Returns a string representation of the current policy statement.
Returns: A string that represents the current object.