NetworkAccess Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies network access permissions.
This enumeration supports a bitwise combination of its member values.
public enum class NetworkAccess
[System.Flags]
public enum NetworkAccess
public enum NetworkAccess
[<System.Flags>]
type NetworkAccess =
type NetworkAccess =
Public Enum NetworkAccess
- Inheritance
- Attributes
Fields
Accept | 128 | 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 | 64 | 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. |
Remarks
The NetworkAccess enumeration is used with the WebPermission and SocketPermission classes.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기