Creates an XML encoding of a System.Net.DnsPermission instance and its current state.
A System.Security.SecurityElement instance that contains an XML-encoded representation of the security object, including state information.
The DnsPermission.ToXml method creates a System.Security.SecurityElement instance to XML-encode a representation of the System.Net.DnsPermission instance, including state information.
Use the DnsPermission.FromXml(System.Security.SecurityElement) method to restore the state information from a System.Security.SecurityElement instance.