26 references to NetworkInformationAccess
System (26)
net\System\Net\NetworkInformation\IPGlobalProperties.cs (1)
16
(new NetworkInformationPermission(
NetworkInformationAccess
.Read)).Demand();
net\System\Net\NetworkInformation\NetworkInformationPermission.cs (21)
55
perm.AddPermission(
NetworkInformationAccess
.Read);
58
perm.AddPermission(
NetworkInformationAccess
.Ping);
61
perm.AddPermission(
NetworkInformationAccess
.None);
78
NetworkInformationAccess
access;
83
access =
NetworkInformationAccess
.Read |
NetworkInformationAccess
.Ping;
87
access =
NetworkInformationAccess
.None;
93
access =
NetworkInformationAccess
.Read |
NetworkInformationAccess
.Ping;
97
access =
NetworkInformationAccess
.None;
103
public NetworkInformationPermission(
NetworkInformationAccess
access) {
107
public
NetworkInformationAccess
Access{
113
public void AddPermission(
NetworkInformationAccess
access) {
164
return (access ==
NetworkInformationAccess
.None);
182
access =
NetworkInformationAccess
.None;
204
access =
NetworkInformationAccess
.Read |
NetworkInformationAccess
.Ping;
216
access |=
NetworkInformationAccess
.Read;
219
access |=
NetworkInformationAccess
.Ping;
237
if ((access &
NetworkInformationAccess
.Read) > 0) {
242
if ((access &
NetworkInformationAccess
.Ping) > 0) {
net\System\Net\NetworkInformation\NetworkInterface.cs (1)
11
(new NetworkInformationPermission(
NetworkInformationAccess
.Read)).Demand();
net\System\Net\NetworkInformation\ping.cs (3)
345
(new NetworkInformationPermission(
NetworkInformationAccess
.Ping)).Demand();
478
(new NetworkInformationPermission(
NetworkInformationAccess
.Ping)).Demand();
610
(new NetworkInformationPermission(
NetworkInformationAccess
.Ping)).Demand();