Reconstructs a System.Net.SocketPermission instance for an XML encoding.
- securityElement
- The XML encoding used to reconstruct the System.Net.SocketPermission instance.
Type Reason ArgumentNullException securityElement is null. ArgumentException securityElement is not a System.Net.SocketPermission permission element.
The SocketPermission.FromXml(System.Security.SecurityElement) method reconstructs a System.Net.SocketPermission instance from an XML encoding defined by the System.Security.SecurityElement class.
Use the SocketPermission.ToXml method to encode the System.Net.SocketPermission instance, including state information, in XML.