NetworkInformationAccess Enumeration

Definition

Gibt die Berechtigung für den Zugriff auf Informationen über 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

None 0

Kein Zugriff auf Netzwerkinformationen.

Ping 4

Ping-Zugriff auf Netzwerkinformationen.

Read 1

Lesezugriff auf Netzwerkinformationen.

Beispiele

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

System::Net::NetworkInformation::NetworkInformationPermission^ read = gcnew System::Net::NetworkInformation::NetworkInformationPermission( System::Net::NetworkInformation::NetworkInformationAccess::Read );
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 den Zugriff auf Informationen anzugeben, die das Berechtigungsobjekt steuert.

Gilt für