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)
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 (23)
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\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 (3)
130
access = NetworkAccess.
Connect
;
260
if ((access & NetworkAccess.
Connect
) != 0)
328
result.AddPermission(NetworkAccess.
Connect
, (EndpointPermission)m_connectList[i]);
net\System\Net\Sockets\Socket.cs (1)
5927
NetworkAccess.
Connect
,
net\System\Net\WebPermission.cs (13)
156
access |= NetworkAccess.
Connect
;
179
perm.AddAsPattern(NetworkAccess.
Connect
, (DelayedRegex)m_connect);
182
perm.AddPermission(NetworkAccess.
Connect
, (string)m_connect);
330
m_UnrestrictedConnect = (access & NetworkAccess.
Connect
) != 0;
388
if ((access & NetworkAccess.
Connect
) != 0 && !m_UnrestrictedConnect)
425
if ((access & NetworkAccess.
Connect
) != 0 && !m_UnrestrictedConnect)
464
if (!m_UnrestrictedConnect && (access & NetworkAccess.
Connect
) != 0)
487
if ((access & NetworkAccess.
Connect
) != 0 && !m_UnrestrictedConnect)
531
WebPermission wp = new WebPermission((m_UnrestrictedConnect ? NetworkAccess.
Connect
: (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);
851
AddAsPattern(NetworkAccess.
Connect
, 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);