34 references to Connect
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)
990new 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(); 1346new WebPermission(NetworkAccess.Connect, finalUri).Demand();
System (23)
net\System\Net\_Connection.cs (1)
3795(new WebPermission(NetworkAccess.Connect, proxy)).Assert();
net\System\Net\_SpnDictionary.cs (1)
198new WebPermission(NetworkAccess.Connect, new Uri(key)).Demand();
net\System\Net\FtpWebRequest.cs (1)
517(new WebPermission(NetworkAccess.Connect, uri)).Demand();
net\System\Net\HttpWebRequest.cs (1)
5947CodeAccessPermission permission = (new WebPermission(NetworkAccess.Connect, uri));
net\System\Net\Internal.cs (1)
948internal static readonly WebPermission WebPermissionUnrestricted = new WebPermission(NetworkAccess.Connect);
net\System\Net\SocketPermission.cs (3)
130access = NetworkAccess.Connect; 260if ((access & NetworkAccess.Connect) != 0) 328result.AddPermission(NetworkAccess.Connect, (EndpointPermission)m_connectList[i]);
net\System\Net\Sockets\Socket.cs (1)
5927NetworkAccess.Connect,
net\System\Net\WebPermission.cs (13)
156access |= NetworkAccess.Connect; 179perm.AddAsPattern(NetworkAccess.Connect, (DelayedRegex)m_connect); 182perm.AddPermission(NetworkAccess.Connect, (string)m_connect); 330m_UnrestrictedConnect = (access & NetworkAccess.Connect) != 0; 388if ((access & NetworkAccess.Connect) != 0 && !m_UnrestrictedConnect) 425if ((access & NetworkAccess.Connect) != 0 && !m_UnrestrictedConnect) 464if (!m_UnrestrictedConnect && (access & NetworkAccess.Connect) != 0) 487if ((access & NetworkAccess.Connect) != 0 && !m_UnrestrictedConnect) 531WebPermission wp = new WebPermission((m_UnrestrictedConnect ? NetworkAccess.Connect : (NetworkAccess) 0) | 683result.AddPermission(NetworkAccess.Connect, (string)m_connectList[i]); 685result.AddPermission(NetworkAccess.Connect, (Uri)m_connectList[i]); 687result.AddAsPattern(NetworkAccess.Connect, uriPattern); 851AddAsPattern(NetworkAccess.Connect, new DelayedRegex(uriPattern));
sys\system\Media\SoundPlayer.cs (1)
316WebPermission webPerm = new WebPermission(NetworkAccess.Connect, uri.AbsolutePath);
System.Web (1)
HttpRuntime.cs (1)
2593askedPermission = new WebPermission(NetworkAccess.Connect, uri.ToString());
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Help.cs (1)
291new WebPermission(NetworkAccess.Connect, url).Demand();
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1527WebPermission permission = new WebPermission(NetworkAccess.Connect, url.AbsoluteUri);