Creates an XML encoding of a System.Net.WebPermission and its current state.
A System.Security.SecurityElement that contains an XML-encoded representation of the System.Net.WebPermission, including state information.
Use the WebPermission.FromXml(System.Security.SecurityElement) method to restore the state information from a System.Security.SecurityElement.