Grants permission to manipulate files located in the code assemblies to code assemblies that match the membership condition. This class cannot be inherited.
See Also: FileCodeGroup Members
Code groups are the building blocks of code access security policy. Each policy level consists of a root code group that can have child code groups. Each child code group can have their own child code groups; this behavior extends to any number of levels, forming a tree. Each code group has a membership condition that determines if a given assembly belongs to it based on the evidence for that assembly. Only code groups whose membership conditions match a given assembly and their child code groups apply policy.
System.Security.Policy.FileCodeGroup has the same child matching semantics as System.Security.Policy.UnionCodeGroup. However, System.Security.Policy.FileCodeGroup returns a permission set containing a dynamically-calculated System.Security.Permissions.FileIOPermission that grants file access to the directory from which the code is run; System.Security.Policy.UnionCodeGroup only returns a static permission set. The type of file access granted is passed as a parameter to the constructor.
This code group only matches assemblies run over a file protocol, that is, assemblies that have URLs that point to a file or UNC path.