System.Net.DnsPermission.FromXml Method

Reconstructs a System.Net.DnsPermission instance from an XML encoding.

Syntax

public override void FromXml (System.Security.SecurityElement securityElement)

Parameters

securityElement
The XML encoding to use to reconstruct the System.Net.DnsPermission instance.

Exceptions

TypeReason
ArgumentNullException securityElement is null
ArgumentException securityElement is not a System.Net.DnsPermission element.

Remarks

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.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0