Mono Class Library: System.Net.SocketPermission Overview | Members

System.Net.SocketPermission.FromXml Method

Reconstructs the state of a System.Net.SocketPermission object using the specified XML encoding. [Edit]

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

Parameters

securityElement
A System.Security.SecurityElement instance containing the XML encoding used to reconstruct the state of a System.Net.SocketPermission object. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionsecurityElement is null. [Edit]
ArgumentExceptionsecurityElement is not a System.Net.SocketPermission permission element. [Edit]

Remarks

The state of the current instance is changed to the state encoded in securityElement.

Note:

For the XML schema for this class, see the System.Net.SocketPermission class page.

This method overrides System.Security.CodeAccessPermission.FromXml(System.Security.SecurityElement).

[Edit]

Requirements

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