SocketPermission
A SocketPermission setting is required for the Connection object ConnectToServer function in .NET targets.
The SocketPermission class belongs to the System.Net namespace described on the Microsoft Web site at http://msdn.microsoft.com/en-us/library/system.net.aspx.
Connection object function | Permission required |
---|---|
ConnectToServer | Connect |
Example 1
Thispermission setting allows a Windows Forms application to get or set a network access method:
1 2 3 4 5 6 7 8 |
<IPermission class="System.Net.SocketPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1"> <ConnectAccess> <ENDPOINT host="10.42.144.40" transport="Tcp" port="2000"/> </ConnectAccess> </IPermission> |
Example 2
This permission setting allows a Web Forms application to get or set a network access:
1 2 3 4 5 6 |
<IPermission class="SocketPermission" version="1"> <ConnectAccess> <ENDPOINT host="10.42.144.40" transport="Tcp" port="2000"/> </ConnectAccess> </IPermission> |
Parent topic: Custom Permission Settings
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest