NetworkInformationAccess Enum

Definitie

Hiermee geeft u machtigingen voor toegang tot informatie over netwerkinterfaces en verkeersstatistieken.

Deze opsomming ondersteunt een bitsgewijze combinatie van de waarden van de leden.

public enum class NetworkInformationAccess
[System.Flags]
public enum NetworkInformationAccess
[<System.Flags>]
type NetworkInformationAccess = 
Public Enum NetworkInformationAccess
Overname
NetworkInformationAccess
Kenmerken

Velden

Name Waarde Description
None 0

Geen toegang tot netwerkgegevens.

Read 1

Leestoegang tot netwerkgegevens.

Ping 4

Ping toegang tot netwerkgegevens.

Voorbeelden

In het volgende codevoorbeeld wordt een machtiging gemaakt waarmee leestoegang tot netwerkgegevens wordt gecontroleerd.

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

Opmerkingen

Deze opsomming wordt gebruikt met de NetworkInformationPermission klasse om het toegangsniveau op te geven voor informatie die door het machtigingsobject wordt bepaald.

Van toepassing op