MethodBuilder.IsSecurityCritical Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Throws a NotSupportedException in all cases.

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

override IsSecurityCritical : bool with get

Property Value

Type: System.Boolean

Throws a NotSupportedException in all cases.

Exception Condition

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

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

.NET Framework
Available since 4.0
Return to top