June 2003
Intermediate to advanced
714 pages
22h 8m
English
FileCodeGroup
public sealed class FileCodeGroup : CodeGroup { // Public Constructors public FileCodeGroup(IMembershipConditionmembershipCondition, System.Security.Permissions.FileIOPermissionAccessaccess); // 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(objecto); // overrides CodeGroup public override int GetHashCode( ); // overrides CodeGroup public override PolicyStatement Resolve(Evidenceevidence); // overrides CodeGroup public override CodeGroup ResolveMatchingCodeGroups(Evidenceevidence); // overrides CodeGroup // Protected Instance Methods protected override void CreateXml(System.Security.SecurityElementelement, PolicyLevellevel); // overrides CodeGroup protected override void ParseXml(System.Security.SecurityElemente, PolicyLevellevel); // 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 ...