Name

FileCodeGroup

Synopsis

public sealed class FileCodeGroup : CodeGroup {
// Public Constructors
   public FileCodeGroup(IMembershipCondition membershipCondition, 
     System.Security.Permissions.FileIOPermissionAccess access);
// 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 bool Equals(object o);        
// overrides CodeGroup
   public override int GetHashCode(  );    
// overrides CodeGroup
   public override PolicyStatement Resolve(Evidence evidence);
 // overrides CodeGroup
   public override CodeGroup ResolveMatchingCodeGroups(Evidence evidence);
 // overrides CodeGroup
                  // Protected Instance Methods
   protected override void CreateXml(System.Security.SecurityElement element, PolicyLevel level);
 // overrides CodeGroup
   protected override void ParseXml(System.Security.SecurityElement e, PolicyLevel level);
 // overrides CodeGroup
}

This class is a subclass of the CodeGroup class. FileCodeGroup does not support attributes and does not contain a statically defined permission set, and so there is no need to assign it a PolicyStatement. With each call to Resolve( ), the FileCodeGroup object determines if the provided Evidence collection contains Url evidence that represents a URL with the “file://” protocol. If so, the FileCodeGroup ...

Get Programming .NET Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.