System.Net.WebPermission.FromXml Method

Reconstructs a System.Net.WebPermission from an XML encoding.

Syntax

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

Parameters

securityElement
The XML encoding from which to reconstruct the System.Net.WebPermission.

Exceptions

TypeReason
ArgumentNullException securityElement is null.
ArgumentException securityElement does not contain the encoding for a System.Net.WebPermission instance.

Remarks

The WebPermission.FromXml(System.Security.SecurityElement) method reconstructs a System.Net.WebPermission from an XML encoding that is defined by the System.Security.SecurityElement class.

Use the WebPermission.ToXml method to XML-encode the System.Net.WebPermission, 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