NetworkAccess Enumeration
.NET Framework 4.5
Specifies network access permissions.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Net
Assembly: System (in System.dll)
| 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. |
The NetworkAccess enumeration is used with the WebPermission and SocketPermission classes.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.