32 instantiations of WebPermission
PresentationCore (11)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
526
new
WebPermission
(PermissionState.Unrestricted).Assert(); // Blessed
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
649
new
WebPermission
(PermissionState.Unrestricted).Assert(); // Blessed
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 (3)
456
(new
WebPermission
(NetworkAccess.Connect, BindUriHelper.UriToString(uri))).Demand();
576
siteOfOriginReadPermission = new
WebPermission
(PermissionState.Unrestricted);
1346
new
WebPermission
(NetworkAccess.Connect, finalUri).Demand();
PresentationFramework (2)
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1222
(new System.Net.
WebPermission
(PermissionState.Unrestricted)).Demand();
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
883
(new System.Net.
WebPermission
(PermissionState.Unrestricted)).Demand();
System (15)
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\WebPermission.cs (7)
148
perm = new
WebPermission
( PermissionState.Unrestricted);
168
perm = new
WebPermission
(access);
528
return new
WebPermission
(true);
531
WebPermission wp = new
WebPermission
((m_UnrestrictedConnect ? NetworkAccess.Connect : (NetworkAccess) 0) |
666
return new
WebPermission
(true);
669
WebPermission result = new
WebPermission
();
737
WebPermission result = new
WebPermission
();
security\system\security\cryptography\x509\x509chain.cs (1)
199
ps.AddPermission(new
WebPermission
(PermissionState.Unrestricted));
sys\system\Media\SoundPlayer.cs (1)
316
WebPermission webPerm = new
WebPermission
(NetworkAccess.Connect, uri.AbsolutePath);
System.IdentityModel (1)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
95
ps.AddPermission(new
WebPermission
(PermissionState.Unrestricted));
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);
35 references to WebPermission
PresentationCore (5)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
533
WebPermission
.RevertAssert();
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
656
WebPermission
.RevertAssert();
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1388
WebPermission
.RevertAssert();
1431
WebPermission
.RevertAssert();
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
248
WebPermission
.RevertAssert();
PresentationFramework (1)
src\Framework\System\Windows\Navigation\NavigationService.cs (1)
2995
if (e.PermissionType == typeof(System.Net.
WebPermission
))
System (27)
net\System\Net\_Connection.cs (1)
3805
WebPermission
.RevertAssert();
net\System\Net\Internal.cs (1)
948
internal static readonly
WebPermission
WebPermissionUnrestricted = new WebPermission(NetworkAccess.Connect);
net\System\Net\NetWebProxyFinder.cs (1)
391
WebPermission
.RevertAssert();
net\System\Net\WebPermission.cs (23)
68
return m_connect is DelayedRegex ? m_connect.ToString() : m_connect is bool && (bool) m_connect ?
WebPermission
.MatchAll : null;
75
if (value ==
WebPermission
.MatchAll)
89
return m_accept is DelayedRegex ? m_accept.ToString() : m_accept is bool && (bool) m_accept ?
WebPermission
.MatchAll : null;
97
if (value ==
WebPermission
.MatchAll)
146
WebPermission
perm = null;
307
/// Creates a new instance of the <see cref='System.Net.
WebPermission
'/>
322
/// Creates a new instance of the <see cref='System.Net.
WebPermission
'/> class.
336
/// Creates a new instance of the <see cref='System.Net.
WebPermission
'/>
348
/// Creates a new instance of the <see cref='System.Net.
WebPermission
'/>
448
/// <para>Adds a new instance of the <see cref='System.Net.
WebPermission
'/>
522
/// Creates a copy of a <see cref='System.Net.
WebPermission
'/> instance.
531
WebPermission
wp = new WebPermission((m_UnrestrictedConnect ? NetworkAccess.Connect : (NetworkAccess) 0) |
539
/// <para>Compares two <see cref='System.Net.
WebPermission
'/> instances.</para>
547
WebPermission
other = target as
WebPermission
;
652
/// <para>Returns the logical union between two <see cref='System.Net.
WebPermission
'/> instances.</para>
659
WebPermission
other = target as
WebPermission
;
669
WebPermission
result = new WebPermission();
715
/// <para>Returns the logical intersection between two <see cref='System.Net.
WebPermission
'/> instances.</para>
723
WebPermission
other = target as
WebPermission
;
737
WebPermission
result = new WebPermission();
sys\system\Media\SoundPlayer.cs (1)
316
WebPermission
webPerm = new WebPermission(NetworkAccess.Connect, uri.AbsolutePath);
System.Web (1)
HttpRuntime.cs (1)
2589
IPermission allowedPermission = NamedPermissionSet.GetPermission(typeof(
WebPermission
));
System.Windows.Forms (1)
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1527
WebPermission
permission = new WebPermission(NetworkAccess.Connect, url.AbsoluteUri);