File: SecurityAction.xml

package info (click to toggle)
mono 6.8.0.105%2Bdfsg-3.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,284,512 kB
  • sloc: cs: 11,172,132; xml: 2,850,069; ansic: 671,653; cpp: 122,091; perl: 59,366; javascript: 30,841; asm: 22,168; makefile: 20,093; sh: 15,020; python: 4,827; pascal: 925; sql: 859; sed: 16; php: 1
file content (390 lines) | stat: -rw-r--r-- 18,308 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<?xml version="1.0" encoding="utf-8"?>
<Type Name="SecurityAction" FullName="System.Security.Permissions.SecurityAction" FullNameSP="System_Security_Permissions_SecurityAction" Maintainer="ecma">
  <TypeSignature Language="ILASM" Value=".class public sealed serializable SecurityAction extends System.Enum" />
  <TypeSignature Language="C#" Value="public enum SecurityAction" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed SecurityAction extends System.Enum" />
  <MemberOfLibrary>BCL</MemberOfLibrary>
  <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>
  <Base>
    <BaseTypeName>System.Enum</BaseTypeName>
  </Base>
  <Attributes>
    <Attribute>
      <AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <remarks>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>The following table describes the time that each security action takes place and the targets that it supports.</para>
      <block subset="none" type="note">
        <para>In the net_v40_long, runtime support has been removed for enforcing the <see cref="F:System.Security.Permissions.SecurityAction.Deny" />, <see cref="F:System.Security.Permissions.SecurityAction.RequestMinimum" />, <see cref="F:System.Security.Permissions.SecurityAction.RequestOptional" />, and <see cref="F:System.Security.Permissions.SecurityAction.RequestRefuse" /> permission requests. These requests should not be used in code that is based on net_v40_short or later. For more information about this and other changes, see <format type="text/html"><a href="5e87881c-9c13-4b52-8ad1-e34bb46e8aaa">Security Changes in the .NET Framework Version 4.0</a></format>.</para>
      </block>
      <para>You should not use <see cref="F:System.Security.Permissions.SecurityAction.LinkDemand" /> in the net_v40_short. Instead, use the <see cref="T:System.Security.SecurityCriticalAttribute" /> to restrict usage to fully trusted applications, or use <see cref="F:System.Security.Permissions.SecurityAction.Demand" /> to restrict partially trusted callers.</para>
      <list type="table">
        <listheader>
          <item>
            <term>
              <para>Declaration of security action </para>
            </term>
            <description>
              <para>Time of action </para>
            </description>
            <description>
              <para>Targets supported </para>
            </description>
          </item>
        </listheader>
        <item>
          <term>
            <para>LinkDemand (do not use in the net_v40_short)</para>
          </term>
          <description>
            <para>Just-in-time compilation </para>
          </description>
          <description>
            <para>Class, method </para>
          </description>
        </item>
        <item>
          <term>
            <para>InheritanceDemand </para>
          </term>
          <description>
            <para>Load time </para>
          </description>
          <description>
            <para>Class, method </para>
          </description>
        </item>
        <item>
          <term>
            <para>Demand </para>
          </term>
          <description>
            <para>Run time </para>
          </description>
          <description>
            <para>Class, method </para>
          </description>
        </item>
        <item>
          <term>
            <para>Assert </para>
          </term>
          <description>
            <para>Run time </para>
          </description>
          <description>
            <para>Class, method </para>
          </description>
        </item>
        <item>
          <term>
            <para>Deny (obsolete in the net_v40_short)</para>
          </term>
          <description>
            <para>Run time </para>
          </description>
          <description>
            <para>Class, method </para>
          </description>
        </item>
        <item>
          <term>
            <para>PermitOnly </para>
          </term>
          <description>
            <para>Run time </para>
          </description>
          <description>
            <para>Class, method </para>
          </description>
        </item>
        <item>
          <term>
            <para>RequestMinimum (obsolete in the net_v40_short) </para>
          </term>
          <description>
            <para>Grant time </para>
          </description>
          <description>
            <para>Assembly </para>
          </description>
        </item>
        <item>
          <term>
            <para>RequestOptional (obsolete in the net_v40_short)</para>
          </term>
          <description>
            <para>Grant time </para>
          </description>
          <description>
            <para>Assembly </para>
          </description>
        </item>
        <item>
          <term>
            <para>RequestRefuse (obsolete in the net_v40_short)</para>
          </term>
          <description>
            <para>Grant time </para>
          </description>
          <description>
            <para>Assembly </para>
          </description>
        </item>
      </list>
      <para>For additional information about attribute targets, see <see cref="T:System.Attribute" />.</para>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Specifies the security actions that can be performed using declarative security.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="Assert">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction Assert = 3" />
      <MemberSignature Language="C#" Value="Assert" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction Assert = int32(3)" />
      <MemberType>Field</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.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>Assert</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>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 (see <format type="text/html"><a href="1E40F4D3-FB7D-4F19-B334-B6076D469EA9">[&lt;topic://cpconassert&gt;]</a></format>). </para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="Demand">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction Demand = 2" />
      <MemberSignature Language="C#" Value="Demand" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction Demand = int32(2)" />
      <MemberType>Field</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.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>Demand</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>All callers higher in the call stack are required to have been granted the permission specified by the current permission object (see <format type="text/html"><a href="324C14F8-54FF-494D-9FD1-BFD20962C8BA">[&lt;topic://cpconmakingsecuritydemands&gt;]</a></format>).</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="Deny">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction Deny = 4" />
      <MemberSignature Language="C#" Value="Deny" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction Deny = int32(4)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("This requests should not be used")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Security.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>Deny</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The ability to access the resource specified by the current permission object is denied to callers, even if they have been granted permission to access it (see <format type="text/html"><a href="6B4D2E01-C504-4AC3-B50E-D6F5E7F5DF25">[&lt;topic://cpcondeny&gt;]</a></format>).</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="InheritanceDemand">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction InheritanceDemand = 7" />
      <MemberSignature Language="C#" Value="InheritanceDemand" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction InheritanceDemand = int32(7)" />
      <MemberType>Field</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.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>InheritanceDemand</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The derived class inheriting the class or overriding a method is required to have been granted the specified permission. For more information, see <format type="text/html"><a href="28b9adbb-8f08-4f10-b856-dbf59eb932d9">Inheritance Demands</a></format>.</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="LinkDemand">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction LinkDemand = 6" />
      <MemberSignature Language="C#" Value="LinkDemand" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction LinkDemand = int32(6)" />
      <MemberType>Field</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.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>LinkDemand</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The immediate caller is required to have been granted the specified permission. Do not use in the net_v40_short. For full trust, use <see cref="T:System.Security.SecurityCriticalAttribute" /> instead; for partial trust, use <see cref="F:System.Security.Permissions.SecurityAction.Demand" />.</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="PermitOnly">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction PermitOnly = 5" />
      <MemberSignature Language="C#" Value="PermitOnly" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction PermitOnly = int32(5)" />
      <MemberType>Field</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.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>PermitOnly</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources (see <format type="text/html"><a href="8C7BDB7F-882F-45B7-908C-6CBAA1767649">[&lt;topic://cpconpermitonly&gt;]</a></format>).</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="RequestMinimum">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction RequestMinimum = 8" />
      <MemberSignature Language="C#" Value="RequestMinimum" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction RequestMinimum = int32(8)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("This requests should not be used")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Security.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>RequestMinimum</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The request for the minimum permissions required for code to run. This action can only be used within the scope of the assembly.</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="RequestOptional">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction RequestOptional = 9" />
      <MemberSignature Language="C#" Value="RequestOptional" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction RequestOptional = int32(9)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("This requests should not be used")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Security.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>RequestOptional</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The request for 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. </para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
    <Member MemberName="RequestRefuse">
      <MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction RequestRefuse = 10" />
      <MemberSignature Language="C#" Value="RequestRefuse" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.SecurityAction RequestRefuse = int32(10)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.5000.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyVersion>4.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("This requests should not be used")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Security.Permissions.SecurityAction</ReturnType>
      </ReturnValue>
      <Parameters />
      <MemberValue>RequestRefuse</MemberValue>
      <Docs>
        <remarks>To be added.</remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The request that permissions that might be misused will not be granted to the calling code. This action can only be used within the scope of the assembly.</para>
        </summary>
      </Docs>
      <Excluded>0</Excluded>
    </Member>
  </Members>
  <TypeExcluded>0</TypeExcluded>
</Type>