[ Team LiB ] Previous Section Next Section

NetCodeGroupserializable

System.Security.Policy (mscorlib.dll)sealed class
public sealed class NetCodeGroup : CodeGroup {
// Public Constructors
   public NetCodeGroup(IMembershipCondition membershipCondition);
// Public Instance Properties
   public override string AttributeString{get; }  
// overrides CodeGroup
   public override string MergeLogic{get; }
// overrides CodeGroup
   public override string PermissionSetName{get; }
// overrides CodeGroup
// Public Instance Methods
   public override CodeGroup Copy(  );        
// overrides CodeGroup
   public override PolicyStatement Resolve(Evidence evidence);
 // overrides CodeGroup
   public override CodeGroup ResolveMatchingCodeGroups(Evidence evidence);
 // overrides CodeGroup
}

The NetCodeGroup class is a concrete subclass of the CodeGroup class. NetCodeGroup does not support attributes and does not contain a statically defined permission set, and so does not require a PolicyStatement. When the Resolve( ) method is called, the NetCodeGroup object determines if the specified Evidence collection contains Url evidence that represents a URL with the "http://" or "https://" protocols. If so, the NetCodeGroup dynamically generates a permission set that contains a System.Net.WebPermission that grants access to the web site specified in the Url evidence.

Members of a NetCodeGroup are tested for membership against all of its child code groups. The final permission set granted by the NetCodeGroup is the union of its permission set and the permission sets of the children to which the assembly or application domain also qualifies for membership.

Hierarchy

System.Object CodeGroup NetCodeGroup

    [ Team LiB ] Previous Section Next Section