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