Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NetworkInformationAccess Enumeration

 

Specifies permission to access information about network interfaces and traffic statistics.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

<FlagsAttribute>
Public Enumeration NetworkInformationAccess

Member nameDescription
None

No access to network information.

Ping

Ping access to network information.

Read

Read access to network information.

This enumeration is used with the NetworkInformationPermission class to specify the level of access to information that the permission object controls.

The following code example creates a permission that controls Read access to network information.

Dim read As New System.Net.NetworkInformation.NetworkInformationPermission( _ 
    System.Net.NetworkInformation.NetworkInformationAccess.Read)

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft