120 references to DeclarativeSecurityAction
Microsoft.CodeAnalysis (8)
PEWriter\MetadataWriter.cs (3)
2180
OrderPreservingMultiDictionary<
DeclarativeSecurityAction
, ICustomAttribute> groupedSecurityAttributes = null;
2184
groupedSecurityAttributes = groupedSecurityAttributes ?? OrderPreservingMultiDictionary<
DeclarativeSecurityAction
, ICustomAttribute>.GetInstance();
2193
foreach (
DeclarativeSecurityAction
securityAction in groupedSecurityAttributes.Keys)
PEWriter\Miscellaneous.cs (2)
95
public
DeclarativeSecurityAction
Action { get; }
98
public SecurityAttribute(
DeclarativeSecurityAction
action, ICustomAttribute attribute)
Symbols\Attributes\SecurityWellKnownAttributeData.cs (3)
30
public void SetSecurityAttribute(int attributeIndex,
DeclarativeSecurityAction
action, int totalSourceAttributes)
76
var
action = (
DeclarativeSecurityAction
)_lazySecurityActions[i];
Microsoft.CodeAnalysis.CSharp (20)
Symbols\Attributes\AttributeData.cs (19)
222
DeclarativeSecurityAction
action = DecodeSecurityAttributeAction(targetSymbol, compilation, arguments.AttributeSyntaxOpt, out hasErrors, (BindingDiagnosticBag)arguments.Diagnostics);
339
private
DeclarativeSecurityAction
DecodeSecurityAttributeAction(Symbol targetSymbol, CSharpCompilation compilation, AttributeSyntax? nodeOpt, out bool hasErrors, BindingDiagnosticBag diagnostics)
363
return
DeclarativeSecurityAction
.LinkDemand;
379
return
DeclarativeSecurityAction
.None;
382
private
DeclarativeSecurityAction
DecodeSecurityAction(TypedConstant typedValue, Symbol targetSymbol, AttributeSyntax? nodeOpt, BindingDiagnosticBag diagnostics, out bool hasErrors)
393
case (int)
DeclarativeSecurityAction
.InheritanceDemand:
394
case (int)
DeclarativeSecurityAction
.LinkDemand:
402
return
DeclarativeSecurityAction
.None;
412
case (int)
DeclarativeSecurityAction
.Assert:
413
case (int)
DeclarativeSecurityAction
.Demand:
414
case (int)
DeclarativeSecurityAction
.PermitOnly:
415
case (int)
DeclarativeSecurityAction
.Deny:
419
case (int)
DeclarativeSecurityAction
.RequestMinimum:
420
case (int)
DeclarativeSecurityAction
.RequestOptional:
421
case (int)
DeclarativeSecurityAction
.RequestRefuse:
432
return
DeclarativeSecurityAction
.None;
448
return
DeclarativeSecurityAction
.None;
462
return
DeclarativeSecurityAction
.None;
467
return (
DeclarativeSecurityAction
)securityAction;
Symbols\Source\SourceAssemblySymbol.cs (1)
1845
yield return new Cci.SecurityAttribute((
DeclarativeSecurityAction
)(int)constantValue, attribute);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
Emit\CompilationEmitTests.cs (8)
4258
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
4327
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
4377
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
4438
ActionFlags =
DeclarativeSecurityAction
.RequestOptional,
4455
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
4501
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
4558
ActionFlags =
DeclarativeSecurityAction
.RequestOptional,
4575
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
Attributes\AttributeTests_Security.cs (28)
59
Assert.Equal(
DeclarativeSecurityAction
.LinkDemand, securityAttribute.Action);
675
ActionFlags =
DeclarativeSecurityAction
.Demand,
694
ActionFlags =
DeclarativeSecurityAction
.Assert,
728
ActionFlags =
DeclarativeSecurityAction
.Demand,
771
ActionFlags =
DeclarativeSecurityAction
.Demand,
809
ActionFlags =
DeclarativeSecurityAction
.Demand,
849
ActionFlags =
DeclarativeSecurityAction
.Demand,
902
ActionFlags =
DeclarativeSecurityAction
.Demand,
954
ActionFlags =
DeclarativeSecurityAction
.Demand,
973
ActionFlags =
DeclarativeSecurityAction
.Assert,
1014
ActionFlags =
DeclarativeSecurityAction
.Demand,
1033
ActionFlags =
DeclarativeSecurityAction
.Assert,
1080
ActionFlags =
DeclarativeSecurityAction
.Demand,
1099
ActionFlags =
DeclarativeSecurityAction
.Demand,
1142
ActionFlags =
DeclarativeSecurityAction
.Demand,
1161
ActionFlags =
DeclarativeSecurityAction
.Demand,
1214
ActionFlags =
DeclarativeSecurityAction
.RequestOptional,
1231
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
1248
ActionFlags =
DeclarativeSecurityAction
.Demand,
1267
ActionFlags =
DeclarativeSecurityAction
.Demand,
1308
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
1325
ActionFlags =
DeclarativeSecurityAction
.Demand,
1344
ActionFlags =
DeclarativeSecurityAction
.Demand,
1388
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
1405
ActionFlags =
DeclarativeSecurityAction
.Demand,
1424
ActionFlags =
DeclarativeSecurityAction
.Assert,
1443
ActionFlags =
DeclarativeSecurityAction
.Demand,
1518
ActionFlags =
DeclarativeSecurityAction
.Deny,
Attributes\AttributeTests_Synthesized.cs (1)
1636
ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
EmitMetadataTestBase.cs (1)
161
public
DeclarativeSecurityAction
ActionFlags;
Microsoft.CodeAnalysis.VisualBasic (18)
Symbols\Attributes\AttributeData.vb (18)
190
Dim action As
DeclarativeSecurityAction
= Me.DecodeSecurityAttributeAction(targetSymbol, compilation, arguments.AttributeSyntaxOpt, hasErrors, DirectCast(arguments.Diagnostics, BindingDiagnosticBag))
211
) As
DeclarativeSecurityAction
230
Return
DeclarativeSecurityAction
.LinkDemand
283
) As
DeclarativeSecurityAction
291
Case
DeclarativeSecurityAction
.InheritanceDemand,
292
DeclarativeSecurityAction
.LinkDemand
300
Return
DeclarativeSecurityAction
.None
310
Case
DeclarativeSecurityAction
.Assert,
311
DeclarativeSecurityAction
.Demand,
312
DeclarativeSecurityAction
.PermitOnly,
313
DeclarativeSecurityAction
.Deny
317
Case
DeclarativeSecurityAction
.RequestMinimum,
318
DeclarativeSecurityAction
.RequestOptional,
319
DeclarativeSecurityAction
.RequestRefuse
329
Return
DeclarativeSecurityAction
.None
341
Return
DeclarativeSecurityAction
.None
352
Return
DeclarativeSecurityAction
.None
355
Return CType(securityAction,
DeclarativeSecurityAction
)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (32)
Attributes\AttributeTests_WellKnownAttributes.vb (1)
3888
Assert.Equal(
DeclarativeSecurityAction
.LinkDemand, securityAttribute.Action)
Emit\CompilationEmitTests.vb (31)
2620
Public ActionFlags As
DeclarativeSecurityAction
2665
.ActionFlags =
DeclarativeSecurityAction
.Demand,
2683
.ActionFlags =
DeclarativeSecurityAction
.Assert,
2723
.ActionFlags =
DeclarativeSecurityAction
.Demand,
2769
.ActionFlags =
DeclarativeSecurityAction
.Demand,
2830
.ActionFlags =
DeclarativeSecurityAction
.Demand,
2889
.ActionFlags =
DeclarativeSecurityAction
.Demand,
2907
.ActionFlags =
DeclarativeSecurityAction
.Assert,
2955
.ActionFlags =
DeclarativeSecurityAction
.Demand,
2973
.ActionFlags =
DeclarativeSecurityAction
.Assert,
3027
.ActionFlags =
DeclarativeSecurityAction
.Demand,
3045
.ActionFlags =
DeclarativeSecurityAction
.Demand,
3094
.ActionFlags =
DeclarativeSecurityAction
.Demand,
3112
.ActionFlags =
DeclarativeSecurityAction
.Demand,
3164
.ActionFlags =
DeclarativeSecurityAction
.RequestOptional,
3180
.ActionFlags =
DeclarativeSecurityAction
.RequestMinimum,
3196
.ActionFlags =
DeclarativeSecurityAction
.Demand,
3214
.ActionFlags =
DeclarativeSecurityAction
.Assert,
3287
Assert.Equal(
DeclarativeSecurityAction
.RequestOptional, securityAttribute.Action)
3291
typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(
DeclarativeSecurityAction
.RequestOptional))
3297
Assert.Equal(
DeclarativeSecurityAction
.RequestMinimum, securityAttribute.Action)
3301
typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(
DeclarativeSecurityAction
.RequestMinimum))
3317
Assert.Equal(
DeclarativeSecurityAction
.Demand, securityAttribute.Action)
3321
typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(
DeclarativeSecurityAction
.Demand))
3327
Assert.Equal(
DeclarativeSecurityAction
.Assert, securityAttribute.Action)
3331
typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(
DeclarativeSecurityAction
.Assert))
3342
Assert.Equal(
DeclarativeSecurityAction
.Demand, securityAttribute.Action)
3346
methodAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(
DeclarativeSecurityAction
.Demand))
3352
Assert.Equal(
DeclarativeSecurityAction
.Assert, securityAttribute.Action)
3356
methodAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(
DeclarativeSecurityAction
.Assert))
3613
.ActionFlags =
DeclarativeSecurityAction
.Deny,
System.Reflection.Metadata (4)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (1)
1169
DeclarativeSecurityAction
action,
System\Reflection\Metadata\Internal\Tables.cs (2)
959
internal
DeclarativeSecurityAction
GetAction(int rowId)
962
return (
DeclarativeSecurityAction
)this.Block.PeekUInt16(rowOffset + _ActionOffset);
System\Reflection\Metadata\TypeSystem\DeclarativeSecurityAttribute.cs (1)
25
public
DeclarativeSecurityAction
Action