UnionCodeGroup Constructor (IMembershipCondition, PolicyStatement)

 

Initializes a new instance of the UnionCodeGroup class.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public UnionCodeGroup(
	IMembershipCondition membershipCondition,
	PolicyStatement policy
)

Parameters

membershipCondition
Type: System.Security.Policy.IMembershipCondition

A membership condition that tests evidence to determine whether this code group applies policy.

policy
Type: System.Security.Policy.PolicyStatement

The policy statement for the code group in the form of a permission set and attributes to grant code that matches the membership condition.

Exception Condition
ArgumentException

The type of the membershipCondition parameter is not valid.

-or-

The type of the policy parameter is not valid.

This constructor creates a basic code group and should be called from the constructors of custom code groups. You can add child code groups by using the AddChild method.

.NET Framework
Available since 1.1
Return to top
Show: