68 references to NetworkAccess
PresentationCore (8)
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1381
(new WebPermission(
NetworkAccess
.Connect, BindUriHelper.UriToString(uri))).Assert(); // BlessedAssert
1421
(new WebPermission(
NetworkAccess
.Connect, BindUriHelper.UriToString(uri))).Assert(); // BlessedAssert
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
234
(new WebPermission(
NetworkAccess
.Connect, BindUriHelper.UriToString(uri))).Assert(); // BlessedAssert
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (3)
990
new WebPermission(
NetworkAccess
.Connect, BindUriHelper.UriToString(uriToOpen)).Assert();
1117
(new WebPermission(
NetworkAccess
.Connect, toOpen)).Demand();
1122
(new WebPermission(
NetworkAccess
.Connect, toOpen)).Demand();
Shared\MS\Internal\SecurityHelper.cs (2)
456
(new WebPermission(
NetworkAccess
.Connect, BindUriHelper.UriToString(uri))).Demand();
1346
new WebPermission(
NetworkAccess
.Connect, finalUri).Demand();
System (57)
net\System\Net\_Connection.cs (1)
3795
(new WebPermission(
NetworkAccess
.Connect, proxy)).Assert();
net\System\Net\_SpnDictionary.cs (1)
198
new WebPermission(
NetworkAccess
.Connect, new Uri(key)).Demand();
net\System\Net\FtpWebRequest.cs (1)
517
(new WebPermission(
NetworkAccess
.Connect, uri)).Demand();
net\System\Net\HttpListener.cs (1)
631
(new WebPermission(
NetworkAccess
.Accept, uriPrefix)).Demand();
net\System\Net\HttpWebRequest.cs (1)
5947
CodeAccessPermission permission = (new WebPermission(
NetworkAccess
.Connect, uri));
net\System\Net\Internal.cs (1)
948
internal static readonly WebPermission WebPermissionUnrestricted = new WebPermission(
NetworkAccess
.Connect);
net\System\Net\SocketPermission.cs (10)
128
NetworkAccess
access;
130
access =
NetworkAccess
.Connect;
134
access =
NetworkAccess
.Accept;
235
public SocketPermission(
NetworkAccess
access, TransportType transport, String hostName, int portNumber) {
246
public void AddPermission(
NetworkAccess
access, TransportType transport, string hostName, int portNumber) {
256
internal void AddPermission(
NetworkAccess
access, EndpointPermission endPoint) {
260
if ((access &
NetworkAccess
.Connect) != 0)
262
if ((access &
NetworkAccess
.Accept) != 0)
328
result.AddPermission(
NetworkAccess
.Connect, (EndpointPermission)m_connectList[i]);
331
result.AddPermission(
NetworkAccess
.Accept, (EndpointPermission)m_acceptList[i]);
net\System\Net\Sockets\Socket.cs (2)
881
NetworkAccess
.Accept,
5927
NetworkAccess
.Connect,
net\System\Net\WebPermission.cs (38)
151
NetworkAccess
access = (
NetworkAccess
) 0;
156
access |=
NetworkAccess
.Connect;
164
access |=
NetworkAccess
.Accept;
171
perm.AddAsPattern(
NetworkAccess
.Accept, (DelayedRegex)m_accept);
174
perm.AddPermission(
NetworkAccess
.Accept, (string)m_accept);
179
perm.AddAsPattern(
NetworkAccess
.Connect, (DelayedRegex)m_connect);
182
perm.AddPermission(
NetworkAccess
.Connect, (string)m_connect);
328
internal WebPermission(
NetworkAccess
access)
330
m_UnrestrictedConnect = (access &
NetworkAccess
.Connect) != 0;
331
m_UnrestrictedAccept = (access &
NetworkAccess
.Accept) != 0;
342
public WebPermission(
NetworkAccess
access, Regex uriRegex) {
355
public WebPermission(
NetworkAccess
access, String uriString) {
360
internal WebPermission(
NetworkAccess
access, Uri uri) {
372
public void AddPermission(
NetworkAccess
access, String uriString) {
388
if ((access &
NetworkAccess
.Connect) != 0 && !m_UnrestrictedConnect)
390
if ((access &
NetworkAccess
.Accept) != 0 && !m_UnrestrictedAccept)
414
internal void AddPermission(
NetworkAccess
access, Uri uri) {
425
if ((access &
NetworkAccess
.Connect) != 0 && !m_UnrestrictedConnect)
427
if ((access &
NetworkAccess
.Accept) != 0 && !m_UnrestrictedAccept)
452
public void AddPermission(
NetworkAccess
access, Regex uriRegex) {
464
if (!m_UnrestrictedConnect && (access &
NetworkAccess
.Connect) != 0)
469
if (!m_UnrestrictedAccept && (access &
NetworkAccess
.Accept) != 0)
484
internal void AddAsPattern(
NetworkAccess
access, DelayedRegex uriRegexPattern)
487
if ((access &
NetworkAccess
.Connect) != 0 && !m_UnrestrictedConnect)
489
if ((access &
NetworkAccess
.Accept) != 0 && !m_UnrestrictedAccept)
531
WebPermission wp = new WebPermission((m_UnrestrictedConnect ?
NetworkAccess
.Connect : (
NetworkAccess
) 0) |
532
(m_UnrestrictedAccept ?
NetworkAccess
.Accept : (
NetworkAccess
)0));
683
result.AddPermission(
NetworkAccess
.Connect, (string)m_connectList[i]);
685
result.AddPermission(
NetworkAccess
.Connect, (Uri)m_connectList[i]);
687
result.AddAsPattern(
NetworkAccess
.Connect, uriPattern);
703
result.AddPermission(
NetworkAccess
.Accept, (string)m_acceptList[i]);
705
result.AddPermission(
NetworkAccess
.Accept, (Uri)m_acceptList[i]);
707
result.AddAsPattern(
NetworkAccess
.Accept, uriPattern);
851
AddAsPattern(
NetworkAccess
.Connect, new DelayedRegex(uriPattern));
883
AddAsPattern(
NetworkAccess
.Accept, new DelayedRegex(uriPattern));
sys\system\Media\SoundPlayer.cs (1)
316
WebPermission webPerm = new WebPermission(
NetworkAccess
.Connect, uri.AbsolutePath);
System.Web (1)
HttpRuntime.cs (1)
2593
askedPermission = new WebPermission(
NetworkAccess
.Connect, uri.ToString());
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Help.cs (1)
291
new WebPermission(
NetworkAccess
.Connect, url).Demand();
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1527
WebPermission permission = new WebPermission(
NetworkAccess
.Connect, url.AbsoluteUri);