Name
SocketPermission
Synopsis
This permission controls whether code can make or accept socket
connections for a given NetworkAccess
, TransportType
, hostname, and port
number (see the four-argument form of the constructor). The
shared field AllPorts
is a
constant that
represents permission to all ports and can be used as the port
argument to the constructor.
Public NotInheritable Class SocketPermission : Inherits System.Security.CodeAccessPermission : Implements System.Security.Permissions.IUnrestrictedPermission ' Public Constructors Public Sub New(ByVal access As NetworkAccess, ByVal transport As TransportType, ByVal hostName As String, ByVal portNumber As Integer) Public Sub New( ByVal state As System.Security.Permissions.PermissionState) ' Public Shared Fields Public const AllPorts As Integer // =-1 ' Public Instance Properties Public ReadOnly Property AcceptList As IEnumerator Public ReadOnly Property ConnectList As IEnumerator ' Public Instance Methods Public Sub AddPermission(ByVal access As NetworkAccess, ByVal transport As TransportType, ByVal hostName As String, ByVal portNumber As Integer) Overrides Public Function Copy() As IPermission Overrides Public Sub FromXml( ByVal securityElement As System.Security.SecurityElement) Overrides Public Function Intersect( ByVal target As System.Security.IPermission) As IPermission Overrides Public Function IsSubsetOf( ByVal target As System.Security.IPermission) As Boolean Public Function IsUnrestricted( ) As Boolean Implements IUnrestrictedPermission.IsUnrestricted ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.