11 instantiations of SocketPermission
PresentationCore (1)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1601
unpackPermissionSet.AddPermission(new System.Net.
SocketPermission
(PermissionState.Unrestricted));
System (10)
net\System\Net\_FtpControlStream.cs (2)
690
new
SocketPermission
(PermissionState.Unrestricted).Assert();
1108
new
SocketPermission
(PermissionState.Unrestricted).Assert();
net\System\Net\Internal.cs (1)
950
internal static readonly SocketPermission UnrestrictedSocketPermission = new
SocketPermission
(PermissionState.Unrestricted);
net\System\Net\SocketPermission.cs (5)
104
perm = new
SocketPermission
( PermissionState.Unrestricted);
107
perm = new
SocketPermission
(PermissionState.None);
285
SocketPermission sp = new
SocketPermission
(m_noRestriction);
323
return new
SocketPermission
(true);
360
result = new
SocketPermission
(false);
net\System\Net\Sockets\Socket.cs (2)
880
= new
SocketPermission
(
5926
= new
SocketPermission
(
31 references to SocketPermission
System (31)
net\System\Net\_FtpControlStream.cs (2)
754
SocketPermission
.RevertAssert();
1115
SocketPermission
.RevertAssert();
net\System\Net\Internal.cs (1)
950
internal static readonly
SocketPermission
UnrestrictedSocketPermission = new SocketPermission(PermissionState.Unrestricted);
net\System\Net\SocketPermission.cs (26)
102
SocketPermission
perm = null;
126
private void ParseAddPermissions(
SocketPermission
perm) {
165
if (!ValidationHelper.ValidateTcpPort(port) && port !=
SocketPermission
.AllPorts) {
214
/// Creates a new instance of the <see cref='System.Net.
SocketPermission
'/>
280
/// a copy of a <see cref='System.Net.
SocketPermission
'/> instance.
285
SocketPermission
sp = new SocketPermission(m_noRestriction);
311
/// <para>Returns the logical union between two <see cref='System.Net.
SocketPermission
'/> instances.</para>
318
SocketPermission
other = target as
SocketPermission
;
325
SocketPermission
result = (
SocketPermission
)other.Copy();
338
/// Returns the logical intersection between two <see cref='System.Net.
SocketPermission
'/> instances.
347
SocketPermission
other = target as
SocketPermission
;
352
SocketPermission
result;
354
result = (
SocketPermission
)(other.Copy());
357
result = (
SocketPermission
)(this.Copy());
374
/// <para>Compares two <see cref='System.Net.
SocketPermission
'/> instances.</para>
382
SocketPermission
other = target as
SocketPermission
;
569
if (!ValidationHelper.ValidateTcpPort(port) && port !=
SocketPermission
.AllPorts) {
753
if (!ValidationHelper.ValidateTcpPort(port) && port !=
SocketPermission
.AllPorts) {
1001
&& ((port == e.port) || (e.port ==
SocketPermission
.AllPorts) || port ==
SocketPermission
.AnyPort)
1040
else if (port ==
SocketPermission
.AllPorts) {
1043
else if (E.port ==
SocketPermission
.AllPorts) {
net\System\Net\Sockets\Socket.cs (2)
879
SocketPermission
socketPermission
5925
SocketPermission
socketPermission