Reconstructs the state of a System.Net.WebPermission object using the specified XML encoding.
- securityElement
- A System.Security.SecurityElement instance containing the XML encoding to use to reconstruct the state of a System.Net.WebPermission object.
Type Reason ArgumentNullException securityElement is null. ArgumentException securityElement does not contain the encoding for a System.Net.WebPermission instance.
The state of the current instance is changed to the state encoded in securityElement.
Note:For the XML encoding for this class, see the System.Net.WebPermission class page.
This method overrides System.Security.CodeAccessPermission.FromXml(System.Security.SecurityElement) .
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0