System.Security.Permissions.FileIOPermission.FromXml Method

Reconstructs a permission with a specified state from an XML encoding.

Syntax

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

Parameters

esd
The XML encoding used to reconstruct the permission.

Exceptions

TypeReason
ArgumentNullException esd is null.
ArgumentException

esd does not contain the encoding for a System.Security.Permissions.FileIOPermission instance.

The version number of esd is not valid.

Remarks

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

Note:

For the XML encoding for this class, see the System.Security.Permissions.FileIOPermission class page.

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

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0