Click or drag to resize

IScriptEngineAllowReflection Property

Controls whether script code is permitted to use reflection.

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

Property Value

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