DnsPermission.FromXml Method (SecurityElement)

 

Reconstructs a DnsPermission instance from an XML encoding.

Namespace:   System.Net
Assembly:  System (in System.dll)

override FromXml : 
        securityElement:SecurityElement -> unit

Parameters

securityElement
Type: System.Security.SecurityElement

The XML encoding to use to reconstruct the DnsPermission instance.

Exception Condition
ArgumentNullException

securityElement is null.

ArgumentException

securityElement is not a DnsPermission element.

The FromXml method reconstructs a DnsPermission instance from an XML encoding defined by the SecurityElement class.

Use the ToXml method to XML-encode the DnsPermission instance, including state information.

The following example reconstructs a DnsPermission instance from an XML encoding.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: