ReflectionPermission
ReflectionPermission settings are required for PowerScript reflection functions and objects in .NET targets.
System function or object | Permission required |
---|---|
FindClassDefinition, FindTypeDefinition | TypeInformation |
ScriptDefinition object | TypeInformation |
Example 1
This permission setting in Windows Forms targets allows reflection for members of a type that are not visible:
1 2 3 4 5 |
<IPermission class= "System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="TypeInformation" /> |
Example 2
This permission setting in Web Forms targets allows reflection for members of a type that are not visible:
1 2 |
<IPermission class="ReflectionPermission" version="1" Flags="TypeInformation"/> |
Parent topic: Custom Permission Settings
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest