22 references to SmtpAccess
System (22)
net\System\Net\Configuration\SmtpNetworkElement.cs (1)
43
(new SmtpPermission(
SmtpAccess
.ConnectToUnrestrictedPort)).Demand();
net\System\Net\mail\SmtpClient.cs (3)
107
new SmtpPermission(
SmtpAccess
.Connect).Demand();
110
new SmtpPermission(
SmtpAccess
.ConnectToUnrestrictedPort).Demand();
247
new SmtpPermission(
SmtpAccess
.ConnectToUnrestrictedPort).Demand();
net\System\Net\mail\smtppermission.cs (18)
58
perm.AddPermission(
SmtpAccess
.Connect);
61
perm.AddPermission(
SmtpAccess
.ConnectToUnrestrictedPort);
64
perm.AddPermission(
SmtpAccess
.None);
82
SmtpAccess
access;
88
access =
SmtpAccess
.ConnectToUnrestrictedPort;
92
access =
SmtpAccess
.None;
98
access =
SmtpAccess
.ConnectToUnrestrictedPort;
102
access =
SmtpAccess
.None;
109
public SmtpPermission(
SmtpAccess
access) {
113
public
SmtpAccess
Access {
120
public void AddPermission(
SmtpAccess
access) {
177
return (access ==
SmtpAccess
.None);
213
access =
SmtpAccess
.ConnectToUnrestrictedPort;
222
access =
SmtpAccess
.Connect;
225
access =
SmtpAccess
.ConnectToUnrestrictedPort;
228
access =
SmtpAccess
.None;
249
if (access ==
SmtpAccess
.Connect) {
252
else if (access ==
SmtpAccess
.ConnectToUnrestrictedPort) {