Controls rights to make or accept connections on a transport address.
Assembly: System (in System.dll)
|SocketPermission(NetworkAccess, TransportType, String, Int32)|
Initializes a new instance of theclass for the given transport address with the specified permission.
|AddPermission(NetworkAccess, TransportType, String, Int32)|
Adds a permission to the set of permissions for a transport address.
Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using Assert can create security issues.(Inherited from CodeAccessPermission.)
Creates a copy of a CodeAccessPermission.Copy().)instance.(Overrides
Obsolete.Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance.(Inherited from CodeAccessPermission.)
Reconstructs a CodeAccessPermission.FromXml(SecurityElement).)instance for an XML encoding.(Overrides
Returns the logical intersection between two CodeAccessPermission.Intersect(IPermission).)instances.(Overrides
Determines if the current permission is a subset of the specified permission.(Overrides CodeAccessPermission.IsSubsetOf(IPermission).)
Checks the overall permission state of the object.
Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance.(Inherited from CodeAccessPermission.)
Creates and returns a string representation of the current permission object.(Inherited from CodeAccessPermission.)
Creates an XML encoding of a CodeAccessPermission.ToXml().)instance and its current state.(Overrides
Returns the logical union between two CodeAccessPermission.Union(IPermission).)instances.(Overrides
Avoid creating socket permissions using host names, as these names have to be resolved to IP addresses, and this might block the stack.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.