NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UnionCodeGroup Methods

The methods of the UnionCodeGroup class are listed below. For a complete list of UnionCodeGroup class members, see the UnionCodeGroup Members topic.

Public:

AddChild Adds a child code group to this code group.
Copy Makes a deep copy of the code group.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
FromXml Overloaded. Reconstructs a security object with a given state from an XML encoding.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
RemoveChild Removes the specified child code group.
Resolve Resolve policy for the code group and its descendants for a set of evidence. Given evidence for an assembly to be loaded, this method evalutes the code group by first checking the membership condition against the evidence and if it matches returning a policy statement for the code group, including evaluation of child code groups.

For union code groups, all child code groups whose membership condition match the evidence are also resolved and all resulting policy statements are unioned with the policy statement of the parent union code group. Each child code group type determines how its (grand)child groups are applied, depending on how their respective Resolve() methods work.

The system uses Resolve() on the policy levels to determine what permissions to grant to loaded code from the resultant policy statements and the code request on the assembly.

ToString (inherited from Object) Returns a String that represents the current Object.
ToXml Overloaded. Creates an XML encoding, of the security object and its current state.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

UnionCodeGroup Class | System.Security.Policy Namespace