Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MethodBuilder::IsSecuritySafeCritical Property

.NET Framework (current version)
 

Throws a NotSupportedException in all cases.

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

public:
property bool IsSecuritySafeCritical {
	virtual bool get() override;
}

Property Value

Type: System::Boolean

Throws a NotSupportedException in all cases.

Exception Condition
NotSupportedException

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
Available since 4.0
Return to top
Show:
© 2017 Microsoft