Click or drag to resize

ScriptEngineAllowReflection Property

Controls whether script code is permitted to use reflection.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
public bool AllowReflection { get; set; }

Property Value

Boolean

Implements

IScriptEngineAllowReflection
Remarks
When this property is set to true, script code running in the current script engine is permitted to use reflection. This affects Object.GetType(), Exception.GetType(), Exception.TargetSite, Delegate.Method, typeOf(Object) and typeOfT. By default, any attempt to invoke these members from script code results in an exception.
See Also