UnionCodeGroup(IMembershipCondition, PolicyStatement) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A membership condition that tests evidence to determine whether this code group applies policy.
- 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om