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