NetworkInformationPermission.Access Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the level of access to network information controlled by this permission.

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

Public ReadOnly Property Access As NetworkInformationAccess

The following code example creates a NetworkInformationPermission, adds a NetworkInformationAccess value to it, and displays the value of this property.

Dim permission As New System.Net.NetworkInformation.NetworkInformationPermission( _
    System.Security.Permissions.PermissionState.None)
permission.AddPermission(System.Net.NetworkInformation.NetworkInformationAccess.Read)
Console.WriteLine("Access is {0}", permission.Access)

.NET Framework
Available since 2.0
Return to top
Show: