SecurityPermission
Execution permission is required for a SecurityPermission setting on all .NET applications and for any managed code that you want a user to run.
This table shows the required SecurityPermission settings for functions and objects in Windows Forms targets.
Function, object, property, or feature | Permission required |
---|---|
OLEControl | Unrestricted (or the Full Trust option) |
ChangeDirectory, Handle, Post, Restart, Run, Send | UnmanagedCode |
URL (PictureHyperlink and StaticHyperlink property), | UnmanagedCode |
HyperlinkToURL (Inet property) | UnmanagedCode |
Language interoperation feature | Variable permissions required, depending on .NET function called or property accessed |
Win32 API feature | UnmanagedCode |
This table shows the required SecurityPermission settings for interactions with .NET or Win32 functions and properties in Web Forms targets.
Feature | Permission required |
---|---|
Language interoperation | Variable permissions required, depending on .NET function called or property accessed |
Win32 API | UnmanagedCode |
Example 1
This example sets required security permissions for Windows Forms targets:
1 2 3 4 5 |
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Assertion, Execution, BindingRedirects, UnmanagedCode" /> |
Example 2
This example sets required security permissions for Web Forms targets
1 2 3 4 |
<IPermission class="SecurityPermission" version="1" Flags="Assertion, Execution, ControlThread, ControlPrincipal, RemotingConfiguration, UnmanagedCode"/> |
Parent topic: Custom Permission Settings
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest