9 [Obsolete(
"This type is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
21 : base(membershipCondition, permSet)
30 : base(membershipCondition, policy)
39 [SecuritySafeCritical]
46 object usedEvidence =
null;
47 if (PolicyManager.CheckMembershipCondition(base.MembershipCondition, evidence, out usedEvidence))
50 IDelayEvaluatedEvidence delayEvaluatedEvidence = usedEvidence as IDelayEvaluatedEvidence;
51 if (delayEvaluatedEvidence !=
null && !delayEvaluatedEvidence.IsVerified)
53 policyStatement.AddDependentEvidence(delayEvaluatedEvidence);
56 IEnumerator enumerator = base.Children.GetEnumerator();
57 while (enumerator.
MoveNext() && !flag)
60 if (policyStatement2 !=
null)
62 policyStatement.InplaceUnion(policyStatement2);
69 return policyStatement;
80 if (base.MembershipCondition.Check(evidence))
82 return base.PolicyStatement;
97 if (base.MembershipCondition.Check(evidence))
101 IEnumerator enumerator = base.Children.GetEnumerator();
105 if (codeGroup2 !=
null)
122 unionCodeGroup.
Name = base.Name;
124 IEnumerator enumerator = base.Children.GetEnumerator();
129 return unionCodeGroup;
132 internal override string GetTypeName()
134 return "System.Security.Policy.UnionCodeGroup";
abstract CodeGroup ResolveMatchingCodeGroups(Evidence evidence)
When overridden in a derived class, resolves matching code groups.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
bool MoveNext()
Advances the enumerator to the next element of the collection.
UnionCodeGroup(IMembershipCondition membershipCondition, PolicyStatement policy)
Initializes a new instance of the T:System.Security.Policy.UnionCodeGroup class.
PolicyStatementAttribute
Defines special attribute flags for security policy on code groups.
string Name
Gets or sets the name of the code group.
IMembershipCondition MembershipCondition
Gets or sets the code group's membership condition.
Represents the statement of a T:System.Security.Policy.CodeGroup describing the permissions and other...
void AddChild(CodeGroup group)
Adds a child code group to the current code group.
Provides information about, and means to manipulate, the current environment and platform....
IList Children
Gets or sets an ordered list of the child code groups of a code group.
Represents a collection that can contain many different types of permissions.
Defines the test to determine whether a code assembly is a member of a code group.
string Description
Gets or sets the description of the code group.
object Current
Gets the element in the collection at the current position of the enumerator.
Represents the abstract base class from which all implementations of code groups must derive.
PolicyStatement PolicyStatement
Gets or sets the policy statement associated with the code group.
Defines the set of information that constitutes input to security policy decisions....
override PolicyStatement Resolve(Evidence evidence)
Resolves policy for the code group and its descendants for a set of evidence.
Specifies that the class can be serialized.
override CodeGroup ResolveMatchingCodeGroups(Evidence evidence)
Resolves matching code groups.
Represents a code group whose policy statement is the union of the current code group's policy statem...
PolicyStatementAttribute Attributes
Gets or sets the attributes of the policy statement.
Supports a simple iteration over a non-generic collection.
override string MergeLogic
Gets the merge logic.
override CodeGroup Copy()
Makes a deep copy of the current code group.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...