NetworkInformationPermission Constructor (NetworkInformationAccess)

 

Initializes a new instance of the NetworkInformationPermission class using the specified NetworkInformationAccess value.

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

public:
NetworkInformationPermission(
	NetworkInformationAccess access
)

The permission created by this constructor can be used to secure access to network information.

The following example creates a permission object that controls access to network information.

System::Net::NetworkInformation::NetworkInformationPermission^ read = gcnew System::Net::NetworkInformation::NetworkInformationPermission( System::Net::NetworkInformation::NetworkInformationAccess::Read );

.NET Framework
Available since 2.0
Return to top
Show: