Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
287 lines (287 sloc) 15.4 KB
<Type Name="DeclarativeSecurityAction" FullName="System.Reflection.DeclarativeSecurityAction">
<TypeSignature Language="C#" Value="public enum DeclarativeSecurityAction" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DeclarativeSecurityAction extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Reflection.DeclarativeSecurityAction" />
<TypeSignature Language="VB.NET" Value="Public Enum DeclarativeSecurityAction" />
<TypeSignature Language="C++ CLI" Value="public enum class DeclarativeSecurityAction" />
<TypeSignature Language="F#" Value="type DeclarativeSecurityAction = " />
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Specifies the security actions that can be performed using declarative security.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="Assert">
<MemberSignature Language="C#" Value="Assert" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction Assert = int16(3)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.Assert" />
<MemberSignature Language="VB.NET" Value="Assert" />
<MemberSignature Language="C++ CLI" Value="Assert" />
<MemberSignature Language="F#" Value="Assert = 3" Usage="System.Reflection.DeclarativeSecurityAction.Assert" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>The calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource.</summary>
</Docs>
</Member>
<Member MemberName="Demand">
<MemberSignature Language="C#" Value="Demand" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction Demand = int16(2)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.Demand" />
<MemberSignature Language="VB.NET" Value="Demand" />
<MemberSignature Language="C++ CLI" Value="Demand" />
<MemberSignature Language="F#" Value="Demand = 2" Usage="System.Reflection.DeclarativeSecurityAction.Demand" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Check that all callers in the call chain have been granted the specified permission.</summary>
</Docs>
</Member>
<Member MemberName="Deny">
<MemberSignature Language="C#" Value="Deny" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction Deny = int16(4)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.Deny" />
<MemberSignature Language="VB.NET" Value="Deny" />
<MemberSignature Language="C++ CLI" Value="Deny" />
<MemberSignature Language="F#" Value="Deny = 4" Usage="System.Reflection.DeclarativeSecurityAction.Deny" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>Without further checks refuse Demand for the specified permission.</summary>
</Docs>
</Member>
<Member MemberName="InheritanceDemand">
<MemberSignature Language="C#" Value="InheritanceDemand" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction InheritanceDemand = int16(7)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.InheritanceDemand" />
<MemberSignature Language="VB.NET" Value="InheritanceDemand" />
<MemberSignature Language="C++ CLI" Value="InheritanceDemand" />
<MemberSignature Language="F#" Value="InheritanceDemand = 7" Usage="System.Reflection.DeclarativeSecurityAction.InheritanceDemand" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>7</MemberValue>
<Docs>
<summary>The derived class inheriting the class or overriding a method is required to have the specified permission.</summary>
</Docs>
</Member>
<Member MemberName="LinkDemand">
<MemberSignature Language="C#" Value="LinkDemand" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction LinkDemand = int16(6)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.LinkDemand" />
<MemberSignature Language="VB.NET" Value="LinkDemand" />
<MemberSignature Language="C++ CLI" Value="LinkDemand" />
<MemberSignature Language="F#" Value="LinkDemand = 6" Usage="System.Reflection.DeclarativeSecurityAction.LinkDemand" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>6</MemberValue>
<Docs>
<summary>Check that the immediate caller has been granted the specified permission.</summary>
</Docs>
</Member>
<Member MemberName="None">
<MemberSignature Language="C#" Value="None" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction None = int16(0)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.None" />
<MemberSignature Language="VB.NET" Value="None" />
<MemberSignature Language="C++ CLI" Value="None" />
<MemberSignature Language="F#" Value="None = 0" Usage="System.Reflection.DeclarativeSecurityAction.None" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>No declarative security action.</summary>
</Docs>
</Member>
<Member MemberName="PermitOnly">
<MemberSignature Language="C#" Value="PermitOnly" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction PermitOnly = int16(5)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.PermitOnly" />
<MemberSignature Language="VB.NET" Value="PermitOnly" />
<MemberSignature Language="C++ CLI" Value="PermitOnly" />
<MemberSignature Language="F#" Value="PermitOnly = 5" Usage="System.Reflection.DeclarativeSecurityAction.PermitOnly" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>5</MemberValue>
<Docs>
<summary>Without further checks, refuse the demand for all permissions other than those specified.</summary>
</Docs>
</Member>
<Member MemberName="RequestMinimum">
<MemberSignature Language="C#" Value="RequestMinimum" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction RequestMinimum = int16(8)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.RequestMinimum" />
<MemberSignature Language="VB.NET" Value="RequestMinimum" />
<MemberSignature Language="C++ CLI" Value="RequestMinimum" />
<MemberSignature Language="F#" Value="RequestMinimum = 8" Usage="System.Reflection.DeclarativeSecurityAction.RequestMinimum" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>8</MemberValue>
<Docs>
<summary>Request the minimum permissions required for code to run. This action can only be used within the scope of the assembly.</summary>
</Docs>
</Member>
<Member MemberName="RequestOptional">
<MemberSignature Language="C#" Value="RequestOptional" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction RequestOptional = int16(9)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.RequestOptional" />
<MemberSignature Language="VB.NET" Value="RequestOptional" />
<MemberSignature Language="C++ CLI" Value="RequestOptional" />
<MemberSignature Language="F#" Value="RequestOptional = 9" Usage="System.Reflection.DeclarativeSecurityAction.RequestOptional" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>9</MemberValue>
<Docs>
<summary>Request additional permissions that are optional (not required to run). This request implicitly refuses all other permissions not specifically requested. This action can only be used within the scope of the assembly.</summary>
</Docs>
</Member>
<Member MemberName="RequestRefuse">
<MemberSignature Language="C#" Value="RequestRefuse" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Reflection.DeclarativeSecurityAction RequestRefuse = int16(10)" />
<MemberSignature Language="DocId" Value="F:System.Reflection.DeclarativeSecurityAction.RequestRefuse" />
<MemberSignature Language="VB.NET" Value="RequestRefuse" />
<MemberSignature Language="C++ CLI" Value="RequestRefuse" />
<MemberSignature Language="F#" Value="RequestRefuse = 10" Usage="System.Reflection.DeclarativeSecurityAction.RequestRefuse" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Reflection.Metadata</AssemblyName>
<AssemblyVersion>1.0.22.0</AssemblyVersion>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<AssemblyVersion>1.4.2.0</AssemblyVersion>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Reflection.DeclarativeSecurityAction</ReturnType>
</ReturnValue>
<MemberValue>10</MemberValue>
<Docs>
<summary>Request that permissions that might be misused not be granted to the calling code. This action can only be used within the scope of the assembly.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.