Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsSecuritySafeCritical Property

MethodBuilder.IsSecuritySafeCritical Property

.NET Framework 4.6 and 4.5

Throws a NotSupportedException in all cases.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override bool IsSecuritySafeCritical { get; }

Property Value

Type: System.Boolean
Throws a NotSupportedException in all cases.


In all cases. This property is not supported in dynamic assemblies. See Remarks.

To determine whether a method in a dynamic assembly is security-safe-critical, complete the type by calling TypeBuilder.CreateType, call the GetMethod method on the completed type, and get the IsSecuritySafeCritical property on the resulting MethodInfo.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft