WebPermission
WebPermission settings are required for features and functions in .NET targets.
The WebPermission class belongs to the System.Net namespace described on the Microsoft Web site at http://msdn.microsoft.com/en-us/library/system.net.aspx.
Function or feature | Permission required |
---|---|
GetURL (Inet function) | Connect for urlname argument |
PostURL (Inet function) | Connect for urlname and serverport arguments |
Web Service call feature | Unrestricted=�true� |
Example 1
This permission setting allows a Windows Forms application to connect to the Sybase Web site:
1 2 3 4 5 6 7 |
<IPermission class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"> <ConnectAccess> <URI uri="http://www.sybase.com"/> </ConnectAccess> </IPermission> |
Example 2
This permission setting allows a Web Forms application to connect to a remote host:
1 2 3 4 5 |
<IPermission class="WebPermission" version="1"> <ConnectAccess> <URI uri="$OriginHost$"/> </ConnectAccess> </IPermission> |
Parent topic: Custom Permission Settings
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest