NetworkInformationAccess Enum

Definition

Anger behörighet att komma åt information om nätverksgränssnitt och trafikstatistik.

Den här uppräkningen stöder en bitvis kombination av dess medlemsvärden.

public enum class NetworkInformationAccess
[System.Flags]
public enum NetworkInformationAccess
[<System.Flags>]
type NetworkInformationAccess = 
Public Enum NetworkInformationAccess
Arv
NetworkInformationAccess
Attribut

Fält

Name Värde Description
None 0

Ingen åtkomst till nätverksinformation.

Read 1

Läs åtkomst till nätverksinformation.

Ping 4

Pinga åtkomst till nätverksinformation.

Exempel

I följande kodexempel skapas en behörighet som styr läsåtkomst till nätverksinformation.

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)

Kommentarer

Den här uppräkningen används med NetworkInformationPermission klassen för att ange åtkomstnivån för information som behörighetsobjektet styr.

Gäller för