NetworkInformationAccess Enumeration

Definition

Gibt die Berechtigung für den Zugriff auf Informationen zu Netzwerkschnittstellen und Datenverkehrsstatistiken an.

Diese Enumeration unterstützt eine bitweise Kombination ihrer Memberwerte.

public enum class NetworkInformationAccess
[System.Flags]
public enum NetworkInformationAccess
[<System.Flags>]
type NetworkInformationAccess = 
Public Enum NetworkInformationAccess
Vererbung
NetworkInformationAccess
Attribute

Felder

Name Wert Beschreibung
None 0

Kein Zugriff auf Netzwerkinformationen.

Read 1

Lesezugriff auf Netzwerkinformationen.

Ping 4

Pingzugriff auf Netzwerkinformationen.

Beispiele

Im folgenden Codebeispiel wird eine Berechtigung erstellt, die den Lesezugriff auf Netzwerkinformationen steuert.

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)

Hinweise

Diese Aufzählung wird mit der NetworkInformationPermission Klasse verwendet, um die Zugriffsebene auf Informationen anzugeben, die das Berechtigungsobjekt steuert.

Gilt für: