Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NetworkAccess Enumeration

Specifies network access permissions.

[Visual Basic]
<Serializable>
Public Enum NetworkAccess
[C#]
[Serializable]
public enum NetworkAccess
[C++]
[Serializable]
__value public enum NetworkAccess
[JScript]
public
   Serializable
enum NetworkAccess

Remarks

The NetworkAccess enumeration is used with the WebPermission and SocketPermission classes.

Members

Member name Description
Accept Indicates that the application is allowed to accept connections from the Internet on a local resource. Notice that this is a protection for the local host that uses Accept to grant access to a local resource (address/port). At the time a socket tries to bind to this local resource a permission check is performed to see if an Accept exists on that resource.
Connect Indicates that the application is allowed to connect to specific Internet resources. Notice that, in the case of remote host resource, no check is performed to see that Connect permissions exist. This is because the port of a connecting remote host is unknown and not suitable permissions can be built in advance. It is the application responsibility to check the permissions of the remote host trying to connect to a listening socket.

Requirements

Namespace: System.Net

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

System.Net Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.