﻿<?xml version="1.0" encoding="utf-8"?><Type Name="FileCodeGroup" FullName="System.Security.Policy.FileCodeGroup"><TypeSignature Maintainer="auto" Language="C#" Value="public sealed class FileCodeGroup : System.Security.Policy.CodeGroup" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit FileCodeGroup extends System.Security.Policy.CodeGroup" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Security.Policy.CodeGroup</BaseTypeName></Base><Interfaces /><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>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.</para><para><see cref="T:System.Security.Policy.FileCodeGroup" /> has the same child matching semantics as <see cref="T:System.Security.Policy.UnionCodeGroup" />. However, <see cref="T:System.Security.Policy.FileCodeGroup" /> returns a permission set containing a dynamically-calculated <see cref="T:System.Security.Permissions.FileIOPermission" /> that grants file access to the directory from which the code is run; <see cref="T:System.Security.Policy.UnionCodeGroup" /> only returns a static permission set. The type of file access granted is passed as a parameter to the constructor.</para><para>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.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Grants permission to manipulate files located in the code assemblies to code assemblies that match the membership condition. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FileCodeGroup (System.Security.Policy.IMembershipCondition membershipCondition, System.Security.Permissions.FileIOPermissionAccess access);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Security.Policy.IMembershipCondition membershipCondition, valuetype System.Security.Permissions.FileIOPermissionAccess access) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters><Parameter Name="membershipCondition" Type="System.Security.Policy.IMembershipCondition" /><Parameter Name="access" Type="System.Security.Permissions.FileIOPermissionAccess" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This constructor creates a basic code group. Child code groups can be added with the <see cref="M:System.Security.Policy.CodeGroup.AddChild(System.Security.Policy.CodeGroup)" /> method.</para><para><see cref="T:System.Security.Policy.FileCodeGroup" /> returns a permission set containing a dynamically-calculated <see cref="T:System.Security.Permissions.FileIOPermission" /> that grants file access to the directory from which the code is run. The type of access granted is determined by the <paramref name="access" /> parameter.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.Policy.FileCodeGroup" /> class.</para></summary><param name="membershipCondition"><attribution license="cc4" from="Microsoft" modified="false" />A membership condition that tests evidence to determine whether this code group applies policy. </param><param name="access"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.Permissions.FileIOPermissionAccess" /> values. This value is used to construct the <see cref="T:System.Security.Permissions.FileIOPermission" /> that is granted. </param></Docs></Member><Member MemberName="AttributeString"><MemberSignature Language="C#" Value="public override string AttributeString { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string AttributeString" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="T:System.Security.Policy.FileCodeGroup" /> does not use <see cref="P:System.Security.Policy.FileCodeGroup.AttributeString" />, so this property is always null.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a string representation of the attributes of the policy statement for the code group.</para></summary></Docs></Member><Member MemberName="Copy"><MemberSignature Language="C#" Value="public override System.Security.Policy.CodeGroup Copy ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Security.Policy.CodeGroup Copy() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Policy.CodeGroup</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method makes a deep copy of the code group, so that copies of all objects the code group contains are also made.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Makes a deep copy of the current code group.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An equivalent copy of the current code group, including its membership conditions and child code groups.</para></returns></Docs></Member><Member MemberName="CreateXml"><MemberSignature Language="C#" Value="protected override void CreateXml (System.Security.SecurityElement element, System.Security.Policy.PolicyLevel level);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void CreateXml(class System.Security.SecurityElement element, class System.Security.Policy.PolicyLevel level) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="element" Type="System.Security.SecurityElement" /><Parameter Name="level" Type="System.Security.Policy.PolicyLevel" /></Parameters><Docs><param name="element">To be added.</param><param name="level">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="Equals"><MemberSignature Language="C#" Value="public override bool Equals (object o);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object o) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="o" Type="System.Object" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the specified code group is equivalent to the current code group.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the specified code group is equivalent to the current code group; otherwise, false.</para></returns><param name="o"><attribution license="cc4" from="Microsoft" modified="false" />The code group to compare with the current code group. </param></Docs></Member><Member MemberName="GetHashCode"><MemberSignature Language="C#" Value="public override int GetHashCode ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the hash code of the current code group.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The hash code of the current code group.</para></returns></Docs></Member><Member MemberName="MergeLogic"><MemberSignature Language="C#" Value="public override string MergeLogic { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string MergeLogic" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the merge logic.</para></summary></Docs></Member><Member MemberName="ParseXml"><MemberSignature Language="C#" Value="protected override void ParseXml (System.Security.SecurityElement e, System.Security.Policy.PolicyLevel level);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void ParseXml(class System.Security.SecurityElement e, class System.Security.Policy.PolicyLevel level) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.Security.SecurityElement" /><Parameter Name="level" Type="System.Security.Policy.PolicyLevel" /></Parameters><Docs><param name="e">To be added.</param><param name="level">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="PermissionSetName"><MemberSignature Language="C#" Value="public override string PermissionSetName { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string PermissionSetName" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the name of the named permission set for the code group.</para></summary></Docs></Member><Member MemberName="Resolve"><MemberSignature Language="C#" Value="public override System.Security.Policy.PolicyStatement Resolve (System.Security.Policy.Evidence evidence);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Security.Policy.PolicyStatement Resolve(class System.Security.Policy.Evidence evidence) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Policy.PolicyStatement</ReturnType></ReturnValue><Parameters><Parameter Name="evidence" Type="System.Security.Policy.Evidence" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Given evidence for an assembly to be loaded, this method evaluates the code group by first checking the membership condition against the specified evidence. If there is a match, this method returns a policy statement for the code group, including evaluation of child code groups.</para><para>The .NET Framework security system uses <see cref="M:System.Security.Policy.FileCodeGroup.Resolve(System.Security.Policy.Evidence)" /> on the policy levels to determine which permissions to grant to loaded code from the resulting policy statements and the code request on the assembly.</para><para><see cref="T:System.Security.Policy.FileCodeGroup" /> uses union semantics and forms a permission set based on the <see cref="T:System.Security.Policy.Url" /> specified by <paramref name="evidence" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Resolves policy for the code group and its descendants for a set of evidence.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A policy statement consisting of the permissions granted by the code group with optional attributes, or null if the code group does not apply (the membership condition does not match the specified evidence).</para></returns><param name="evidence"><attribution license="cc4" from="Microsoft" modified="false" />The evidence for the assembly. </param></Docs></Member><Member MemberName="ResolveMatchingCodeGroups"><MemberSignature Language="C#" Value="public override System.Security.Policy.CodeGroup ResolveMatchingCodeGroups (System.Security.Policy.Evidence evidence);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Security.Policy.CodeGroup ResolveMatchingCodeGroups(class System.Security.Policy.Evidence evidence) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Policy.CodeGroup</ReturnType></ReturnValue><Parameters><Parameter Name="evidence" Type="System.Security.Policy.Evidence" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Given evidence for an assembly to be loaded, this method evaluates the code group by first checking the membership condition against the specified evidence. If there is a match, this method returns a root code group. The code group that is returned contains child code groups, which in turn can have child code groups as necessary to reflect the complete set of code groups that were matched by the evidence provided.</para><para><see cref="T:System.Security.Policy.FileCodeGroup" /> uses union semantics and forms a permission set based on the <see cref="T:System.Security.Policy.Url" /> specified by <paramref name="evidence" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Resolves matching code groups.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Security.Policy.CodeGroup" /> that is the root of the tree of matching code groups.</para></returns><param name="evidence"><attribution license="cc4" from="Microsoft" modified="false" />The evidence for the assembly. </param></Docs></Member></Members></Type>