UnionCodeGroup(IMembershipCondition, PolicyStatement) UnionCodeGroup(IMembershipCondition, PolicyStatement) UnionCodeGroup(IMembershipCondition, PolicyStatement) UnionCodeGroup(IMembershipCondition, PolicyStatement) Constructor

Definition

Initializes a new instance of the UnionCodeGroup class.

public:
 UnionCodeGroup(System::Security::Policy::IMembershipCondition ^ membershipCondition, System::Security::Policy::PolicyStatement ^ policy);
public UnionCodeGroup (System.Security.Policy.IMembershipCondition membershipCondition, System.Security.Policy.PolicyStatement policy);
new System.Security.Policy.UnionCodeGroup : System.Security.Policy.IMembershipCondition * System.Security.Policy.PolicyStatement -> System.Security.Policy.UnionCodeGroup
Public Sub New (membershipCondition As IMembershipCondition, policy As PolicyStatement)

Parameters

membershipCondition
IMembershipCondition IMembershipCondition IMembershipCondition IMembershipCondition

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

policy
PolicyStatement PolicyStatement PolicyStatement 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.

Exceptions

The type of the membershipCondition parameter is not valid.

-or-

The type of the policy parameter is not valid.

Remarks

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.

Applies to